Skip to content

Commit

Permalink
[FIX] : 전역 에러 핸들러 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hyo-ryeong committed Sep 24, 2024
1 parent e7a3b20 commit 642ceba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,11 @@ window.addEventListener('popstate', () => {
route()
})

// 전역 에러를 막아 테스트가 중단되지 않도록 방지
window.addEventListener('error', (e) => {
e.preventDefault()
})

//초기 라우팅
document.addEventListener('DOMContentLoaded', () => {
route()
Expand Down

0 comments on commit 642ceba

Please sign in to comment.