1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update imports

This commit is contained in:
Luke Pulverenti 2015-11-28 22:00:07 -05:00
parent 7029c9112b
commit 20df393f36
3 changed files with 18 additions and 13 deletions

View file

@ -2452,11 +2452,19 @@ var AppInfo = {};
Dashboard.initPromise = new Promise(function (resolve, reject) {
function onWebComponentsReady() {
if (Dashboard.isRunningInCordova()) {
initCordova(resolve);
} else {
init(resolve, Dashboard.capabilities());
}
var link = document.createElement('link');
link.rel = 'import';
link.onload = function() {
if (Dashboard.isRunningInCordova()) {
initCordova(resolve);
} else {
init(resolve, Dashboard.capabilities());
}
};
link.href = "vulcanize-out.html?v=" + window.dashboardVersion;
document.head.appendChild(link);
}
setBrowserInfo(isMobile);
@ -2466,10 +2474,7 @@ var AppInfo = {};
if (supportsNativeWebComponents) {
onWebComponentsReady();
} else {
document.addEventListener('WebComponentsReady', function () {
setTimeout(onWebComponentsReady, 500);
});
document.addEventListener('WebComponentsReady', onWebComponentsReady);
}
});
});