We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2713a78 commit 44fb057Copy full SHA for 44fb057
src/domains/recommend/hook/useChatInit.ts
@@ -15,17 +15,5 @@ export function useChatInit(setMessages: React.Dispatch<React.SetStateAction<Cha
15
}
16
};
17
loadGreeting();
18
-
19
- // 새로고침/브라우저 닫기 confirm
20
- const handleBeforeUnload = (e: BeforeUnloadEvent) => {
21
- e.preventDefault();
22
- e.returnValue = '';
23
- };
24
25
- window.addEventListener('beforeunload', handleBeforeUnload);
26
27
- return () => {
28
- window.removeEventListener('beforeunload', handleBeforeUnload);
29
30
}, [setMessages]);
31
0 commit comments