mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-04 22:38:43 +00:00
Remove unneeded unsub function
This commit is contained in:
@@ -69,13 +69,9 @@ const SharePage = (props)=>{
|
||||
});
|
||||
}
|
||||
|
||||
function unsub(){
|
||||
eventSource?.close();
|
||||
};
|
||||
|
||||
return async ()=>{
|
||||
return ()=>{
|
||||
document.removeEventListener('keydown', handleControlKeys);
|
||||
unsub();
|
||||
eventSource?.close();
|
||||
};
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user