mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-04 18:18:46 +00:00
Fix type preventing event listener from being unloaded
This commit is contained in:
@@ -85,7 +85,7 @@ const SharePage = (props)=>{
|
||||
|
||||
return async ()=>{
|
||||
document.removeEventListener('keydown', handleControlKeys);
|
||||
window.addEventListener('beforeunload', unsub);
|
||||
window.removeEventListener('beforeunload', unsub);
|
||||
eventSource.close();
|
||||
};
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user