Remove unneeded unsub function

This commit is contained in:
G.Ambatte
2026-10-13 17:33:02 +13:00
parent fe1a33ecfe
commit 0f3bc68222
@@ -69,13 +69,9 @@ const SharePage = (props)=>{
});
}
function unsub(){
eventSource?.close();
};
return async ()=>{
return ()=>{
document.removeEventListener('keydown', handleControlKeys);
unsub();
eventSource?.close();
};
}, []);