mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 19:38:20 -07:00
Add console warning when plugin fails to load
This commit is contained in:
parent
4727859e46
commit
e676a3a236
@ -136,13 +136,9 @@ function loadPlugins() {
|
|||||||
list = list.concat(window.NativeShell.getPlugins());
|
list = list.concat(window.NativeShell.getPlugins());
|
||||||
}
|
}
|
||||||
|
|
||||||
Promise.all(list.map((plugin) => {
|
Promise.all(list.map(plugin => pluginManager.loadPlugin(plugin)))
|
||||||
return pluginManager.loadPlugin(plugin);
|
.then(() => console.debug('finished loading plugins'))
|
||||||
}))
|
.catch(e => console.warn('failed loading plugins', e))
|
||||||
.then(function () {
|
|
||||||
console.debug('finished loading plugins');
|
|
||||||
})
|
|
||||||
.catch(() => console.debug('failed loading plugins'))
|
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
console.groupEnd('loading installed plugins');
|
console.groupEnd('loading installed plugins');
|
||||||
packageManager.init();
|
packageManager.init();
|
||||||
|
Loading…
Reference in New Issue
Block a user