mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-05 00:48:44 +00:00
Fix type preventing event listener from being unloaded
This commit is contained in:
@@ -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();
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|||||||
Reference in New Issue
Block a user