diff --git a/src/components/apphost.js b/src/components/apphost.js index a61de37aa..5db256ea0 100644 --- a/src/components/apphost.js +++ b/src/components/apphost.js @@ -457,5 +457,3 @@ if (window.addEventListener) { window.addEventListener('blur', onAppHidden); } -// load app host on module load -appHost.init(); diff --git a/src/index.jsx b/src/index.jsx index 30e8b8aa6..6a2a3fbcb 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -66,6 +66,9 @@ build: ${__JF_BUILD_VERSION__}`); document.querySelector('.skinHeader').classList.remove('noHeaderRight'); }); + // Initialize app host + await appHost.init(); + // Initialize the api client const serverUrl = await serverAddress(); if (serverUrl) {