Remove unneeded unsub function
This commit is contained in:
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();
|
||||
};
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in new issue
Block a user