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