Merge pull request #1277 from jellyfin/fix-1141-lint

Fix #1141 linting
This commit is contained in:
Vasily 2020-05-19 15:13:36 +03:00 committed by GitHub
commit 08553cc6e9
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);
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);
}