mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
ensure that appHost is loaded on onAppReady for all function
This commit is contained in:
parent
8be5c9e987
commit
a0e45f7809
1 changed files with 75 additions and 72 deletions
|
@ -1209,6 +1209,8 @@ var AppInfo = {};
|
||||||
function onAppReady(browser) {
|
function onAppReady(browser) {
|
||||||
console.log("Begin onAppReady");
|
console.log("Begin onAppReady");
|
||||||
|
|
||||||
|
// ensure that appHost is loaded in this point
|
||||||
|
require(['appHost'], function (appHost) {
|
||||||
var isInBackground = -1 !== self.location.href.toString().toLowerCase().indexOf("start=backgroundsync");
|
var isInBackground = -1 !== self.location.href.toString().toLowerCase().indexOf("start=backgroundsync");
|
||||||
|
|
||||||
window.Emby = {};
|
window.Emby = {};
|
||||||
|
@ -1223,7 +1225,7 @@ var AppInfo = {};
|
||||||
require(['css!devices/ios/ios.css']);
|
require(['css!devices/ios/ios.css']);
|
||||||
}
|
}
|
||||||
|
|
||||||
require(['apphost', 'appRouter', 'scripts/themeloader', 'libraryMenu'], function (appHost, pageObjects) {
|
require(['appRouter', 'scripts/themeloader', 'libraryMenu'], function (pageObjects) {
|
||||||
window.Emby.Page = pageObjects;
|
window.Emby.Page = pageObjects;
|
||||||
|
|
||||||
defineCoreRoutes(appHost);
|
defineCoreRoutes(appHost);
|
||||||
|
@ -1289,6 +1291,7 @@ var AppInfo = {};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function registerServiceWorker() {
|
function registerServiceWorker() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue