Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
* Remove superfluous variable
* Remove extra random spaces from editor
* Use single-quotes around text
  • Loading branch information
joshuaboniface committed May 30, 2023
1 parent dd004ec commit cf530b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/controllers/dashboard/plugins/add/index.js
Expand Up @@ -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 () {
Expand All @@ -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 += '<br/>';
Expand Down
8 changes: 4 additions & 4 deletions src/controllers/dashboard/plugins/repositories/index.js
Expand Up @@ -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,
Expand All @@ -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 += '<br/>';
msg += '<br/>';
msg += globalize.translate('PleaseConfirmRepositoryInstallation');

confirm(msg, globalize.translate('HeaderConfirmRepositoryInstallation')).then(function () {
alertCallback();
}).catch(() => {
Expand Down

0 comments on commit cf530b3

Please sign in to comment.