mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
Wait for initialization to complete
This commit is contained in:
parent
4b84e6c0aa
commit
07a54e9303
@ -615,6 +615,7 @@ function initClient() {
|
||||
}
|
||||
|
||||
var localApiClient;
|
||||
let promise;
|
||||
|
||||
(function () {
|
||||
var urlArgs = 'v=' + (window.dashboardVersion || new Date().getDate());
|
||||
@ -696,7 +697,7 @@ function initClient() {
|
||||
onError: onRequireJsError
|
||||
});
|
||||
|
||||
require(['fetch'])
|
||||
promise = require(['fetch'])
|
||||
.then(() => require(['jQuery', 'polyfill', 'fast-text-encoding', 'intersection-observer', 'classlist-polyfill', 'css!assets/css/site', 'jellyfin-noto'], (jQuery) => {
|
||||
// Expose jQuery globally
|
||||
window.$ = jQuery;
|
||||
@ -1107,7 +1108,7 @@ function initClient() {
|
||||
});
|
||||
})();
|
||||
|
||||
return onWebComponentsReady();
|
||||
promise.then(onWebComponentsReady);
|
||||
}
|
||||
|
||||
initClient();
|
||||
|
Loading…
Reference in New Issue
Block a user