From cf530b30d5ca17a3e35b4e6faadf45f277b625da Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 30 May 2023 09:29:06 -0400 Subject: [PATCH] Fix linting errors * Remove superfluous variable * Remove extra random spaces from editor * Use single-quotes around text --- src/controllers/dashboard/plugins/add/index.js | 3 +-- src/controllers/dashboard/plugins/repositories/index.js | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/controllers/dashboard/plugins/add/index.js b/src/controllers/dashboard/plugins/add/index.js index 8ee3b61268..70071e38d1 100644 --- a/src/controllers/dashboard/plugins/add/index.js +++ b/src/controllers/dashboard/plugins/add/index.js @@ -86,7 +86,6 @@ function alertText(options) { } function performInstallation(page, name, guid, version) { - const developer = $('#developer', page).html().toLowerCase(); const repositoryUrl = $('#repositoryUrl', page).html().toLowerCase(); const alertCallback = function () { @@ -102,7 +101,7 @@ function performInstallation(page, name, guid, version) { // Check the repository URL for the official Jellyfin repository domain, or // present the warning for 3rd party plugins. - if (!repositoryUrl.startsWith("https://repo.jellyfin.org/")) { + if (!repositoryUrl.startsWith('https://repo.jellyfin.org/')) { loading.hide(); let msg = globalize.translate('MessagePluginInstallDisclaimer'); msg += '
'; diff --git a/src/controllers/dashboard/plugins/repositories/index.js b/src/controllers/dashboard/plugins/repositories/index.js index d8d748b3b8..fc8c918ed4 100644 --- a/src/controllers/dashboard/plugins/repositories/index.js +++ b/src/controllers/dashboard/plugins/repositories/index.js @@ -168,7 +168,7 @@ export default function(view) { e.preventDefault(); const repositoryUrl = dialog.querySelector('#txtRepositoryUrl').value.toLowerCase(); - + const alertCallback = function () { repositories.push({ Name: dialog.querySelector('#txtRepositoryName').value, @@ -178,15 +178,15 @@ export default function(view) { saveList(view); dialogHelper.close(dialog); }; - + // Check the repository URL for the official Jellyfin repository domain, or // present the warning for 3rd party plugins. - if (!repositoryUrl.startsWith("https://repo.jellyfin.org/")) { + if (!repositoryUrl.startsWith('https://repo.jellyfin.org/')) { let msg = globalize.translate('MessageRepositoryInstallDisclaimer'); msg += '
'; msg += '
'; msg += globalize.translate('PleaseConfirmRepositoryInstallation'); - + confirm(msg, globalize.translate('HeaderConfirmRepositoryInstallation')).then(function () { alertCallback(); }).catch(() => {