mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-16 11:37:47 +01:00
fix: remove eventListener (#993)
This commit is contained in:
@@ -78,7 +78,7 @@ export default function useSettingsWindow() {
|
||||
|
||||
return () => {
|
||||
unlisten.then((fn) => fn());
|
||||
window.addEventListener("keydown", handleKeyDown);
|
||||
window.removeEventListener("keydown", handleKeyDown);
|
||||
};
|
||||
}, [openSettingsWindow, handleKeyDown]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user