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(){
|
return ()=>{
|
||||||
eventSource?.close();
|
|
||||||
};
|
|
||||||
|
|
||||||
return async ()=>{
|
|
||||||
document.removeEventListener('keydown', handleControlKeys);
|
document.removeEventListener('keydown', handleControlKeys);
|
||||||
unsub();
|
eventSource?.close();
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user