mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
attach core and shell to window
This commit is contained in:
parent
9aa7c15129
commit
447bbce375
1 changed files with 2 additions and 1 deletions
|
|
@ -24,7 +24,6 @@ const App = () => {
|
|||
};
|
||||
const onCoreStateChanged = () => {
|
||||
if (services.core.active) {
|
||||
window.core = services.core;
|
||||
services.core.dispatch({
|
||||
action: 'Load',
|
||||
args: {
|
||||
|
|
@ -39,6 +38,8 @@ const App = () => {
|
|||
services.keyboardNavigation.start();
|
||||
services.shell.start();
|
||||
services.core.start();
|
||||
window.shell = services.shell;
|
||||
window.core = services.core;
|
||||
return () => {
|
||||
services.keyboardNavigation.stop();
|
||||
services.shell.stop();
|
||||
|
|
|
|||
Loading…
Reference in a new issue