mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
removed any reference to requirejs
This commit is contained in:
parent
f26dbd7b2c
commit
67adeef131
4 changed files with 1 additions and 124 deletions
|
@ -70,14 +70,6 @@ import globalize from '../scripts/globalize';
|
|||
const separatorIndex = Math.max(pluginSpec.lastIndexOf('/'), pluginSpec.lastIndexOf('\\'));
|
||||
plugin.baseUrl = pluginSpec.substring(0, separatorIndex);
|
||||
|
||||
const paths = {};
|
||||
paths[plugin.id] = plugin.baseUrl;
|
||||
|
||||
requirejs.config({
|
||||
waitSeconds: 0,
|
||||
paths: paths
|
||||
});
|
||||
|
||||
this.#registerPlugin(plugin).then(Promise.resolve).catch(Promise.reject);
|
||||
});
|
||||
} else if (pluginSpec.then) {
|
||||
|
@ -87,7 +79,7 @@ import globalize from '../scripts/globalize';
|
|||
return this.#registerPlugin(plugin);
|
||||
});
|
||||
} else {
|
||||
const err = new TypeError('Plugins have to be a Promise that resolves to a plugin builder function or a RequireJS url (deprecated)');
|
||||
const err = new TypeError('Plugins have to be a Promise that resolves to a plugin builder function');
|
||||
console.error(err);
|
||||
return Promise.reject(err);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue