mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 19:02:15 +00:00
fix core error handling
This commit is contained in:
parent
abaac17c07
commit
682b58359c
1 changed files with 2 additions and 4 deletions
|
|
@ -146,10 +146,8 @@ const App = () => {
|
|||
.catch((e) => console.error(e));
|
||||
}
|
||||
return () => {
|
||||
if (services.core.active) {
|
||||
window.removeEventListener('focus', onWindowFocus);
|
||||
services.core.transport.off('CoreEvent', onCoreEvent);
|
||||
}
|
||||
window.removeEventListener('focus', onWindowFocus);
|
||||
services.core.transport?.off('CoreEvent', onCoreEvent);
|
||||
};
|
||||
}, [initialized]);
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue