Remove unneeded unsub function

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