Skip to content

Commit

Permalink
[fix/#137]:event타입명시
Browse files Browse the repository at this point in the history
  • Loading branch information
doyi0107 committed Sep 21, 2024
1 parent 8230280 commit da78ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/study/Timer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function Timer({ maxTime, currentTime, initialSubjects }: ITimer)

// 브라우저 닫힘 이벤트 처리
useEffect(() => {
const handleBeforeUnload = (event) => {
const handleBeforeUnload = (event: BeforeUnloadEvent) => {
// 기본 알림 메시지를 설정합니다.
event.preventDefault();
event.returnValue = '정말로 페이지를 떠나시겠습니까?'; // 보안상 커스텀한 메시지로 알림불가
Expand Down

0 comments on commit da78ee3

Please sign in to comment.