attach core service to window

This commit is contained in:
NikolaBorislavovHristov 2019-10-18 11:19:32 +03:00
parent 9aec721767
commit b12a8a3c9d

View file

@ -24,6 +24,7 @@ const App = () => {
setCoreInitialized(services.core.active || services.core.error instanceof Error);
if (services.core.active) {
services.core.dispatch({ action: 'LoadCtx' });
window.core = services.core;
}
};
services.shell.on('stateChanged', onShellStateChanged);