Merge pull request #1748 from dmitrylyzo/fix-old-edge
Fix old Edge loading
This commit is contained in:
commit
73e3a94755
1 changed files with 8 additions and 15 deletions
|
@ -615,6 +615,7 @@ function initClient() {
|
||||||
}
|
}
|
||||||
|
|
||||||
var localApiClient;
|
var localApiClient;
|
||||||
|
let promise;
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
var urlArgs = 'v=' + (window.dashboardVersion || new Date().getDate());
|
var urlArgs = 'v=' + (window.dashboardVersion || new Date().getDate());
|
||||||
|
@ -696,20 +697,12 @@ function initClient() {
|
||||||
onError: onRequireJsError
|
onError: onRequireJsError
|
||||||
});
|
});
|
||||||
|
|
||||||
require(['fetch']);
|
promise = require(['fetch'])
|
||||||
require(['polyfill']);
|
.then(() => require(['jQuery', 'polyfill', 'fast-text-encoding', 'intersection-observer', 'classlist-polyfill', 'css!assets/css/site', 'jellyfin-noto'], (jQuery) => {
|
||||||
require(['fast-text-encoding']);
|
|
||||||
require(['intersection-observer']);
|
|
||||||
require(['classlist-polyfill']);
|
|
||||||
|
|
||||||
// Expose jQuery globally
|
// Expose jQuery globally
|
||||||
require(['jQuery'], function(jQuery) {
|
|
||||||
window.$ = jQuery;
|
window.$ = jQuery;
|
||||||
window.jQuery = jQuery;
|
window.jQuery = jQuery;
|
||||||
});
|
}));
|
||||||
|
|
||||||
require(['css!assets/css/site']);
|
|
||||||
require(['jellyfin-noto']);
|
|
||||||
|
|
||||||
// define styles
|
// define styles
|
||||||
// TODO determine which of these files can be moved to the components themselves
|
// TODO determine which of these files can be moved to the components themselves
|
||||||
|
@ -1115,7 +1108,7 @@ function initClient() {
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|
||||||
return onWebComponentsReady();
|
promise.then(onWebComponentsReady);
|
||||||
}
|
}
|
||||||
|
|
||||||
initClient();
|
initClient();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue