Fix type preventing event listener from being unloaded

This commit is contained in:
G.Ambatte
2026-10-12 17:54:37 +13:00
parent d80085a67c
commit 195f18659d
@@ -85,7 +85,7 @@ const SharePage = (props)=>{
return async ()=>{ return async ()=>{
document.removeEventListener('keydown', handleControlKeys); document.removeEventListener('keydown', handleControlKeys);
window.addEventListener('beforeunload', unsub); window.removeEventListener('beforeunload', unsub);
eventSource.close(); eventSource.close();
}; };
}, []); }, []);