1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
This commit is contained in:
Fernando 2020-05-19 13:51:34 +02:00 committed by GitHub
parent e797735fc1
commit f2d82a3ceb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ define(['events', 'globalize', 'appRouter'], function (events, globalize, appRou
} }
} }
if (typeof pluginSpec === "string") { if (typeof pluginSpec === 'string') {
console.debug('Loading plugin (via deprecated requirejs method): ' + pluginSpec); console.debug('Loading plugin (via deprecated requirejs method): ' + pluginSpec);
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {
@ -101,7 +101,7 @@ define(['events', 'globalize', 'appRouter'], function (events, globalize, appRou
return registerPlugin(plugin); return registerPlugin(plugin);
}); });
} else { } else {
const err = new Error("Plugins have to be a Promise that resolves to a plugin builder function or a requirejs urls (deprecated)"); const err = new Error('Plugins have to be a Promise that resolves to a plugin builder function or a requirejs urls (deprecated)');
console.error(err); console.error(err);
return Promise.reject(err); return Promise.reject(err);
} }