diff --git a/src/controllers/dashboard/plugins/add/index.js b/src/controllers/dashboard/plugins/add/index.js index cdfba0140e..8ee3b61268 100644 --- a/src/controllers/dashboard/plugins/add/index.js +++ b/src/controllers/dashboard/plugins/add/index.js @@ -87,7 +87,7 @@ function alertText(options) { function performInstallation(page, name, guid, version) { const developer = $('#developer', page).html().toLowerCase(); - const repository_url = $('#repositoryUrl', page).html().toLowerCase(); + const repositoryUrl = $('#repositoryUrl', page).html().toLowerCase(); const alertCallback = function () { loading.show(); @@ -102,7 +102,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 (!repository_url.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 b208299b97..d8d748b3b8 100644 --- a/src/controllers/dashboard/plugins/repositories/index.js +++ b/src/controllers/dashboard/plugins/repositories/index.js @@ -167,7 +167,7 @@ export default function(view) { dialog.querySelector('.newPluginForm').addEventListener('submit', e => { e.preventDefault(); - const repository_url = dialog.querySelector('#txtRepositoryUrl').value.toLowerCase(); + const repositoryUrl = dialog.querySelector('#txtRepositoryUrl').value.toLowerCase(); const alertCallback = function () { repositories.push({ @@ -181,7 +181,7 @@ export default function(view) { // Check the repository URL for the official Jellyfin repository domain, or // present the warning for 3rd party plugins. - if (!repository_url.startsWith("https://repo.jellyfin.org/")) { + if (!repositoryUrl.startsWith("https://repo.jellyfin.org/")) { let msg = globalize.translate('MessageRepositoryInstallDisclaimer'); msg += '
'; msg += '
';