mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix #1141 linting
This commit is contained in:
parent
e797735fc1
commit
f2d82a3ceb
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
@ -101,7 +101,7 @@ define(['events', 'globalize', 'appRouter'], function (events, globalize, appRou
|
|||
return registerPlugin(plugin);
|
||||
});
|
||||
} 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);
|
||||
return Promise.reject(err);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue