1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix linting errors

* Remove superfluous variable
* Remove extra random spaces from editor
* Use single-quotes around text
This commit is contained in:
Joshua M. Boniface 2023-05-30 09:29:06 -04:00
parent dd004ec06b
commit cf530b30d5
2 changed files with 5 additions and 6 deletions

View file

@ -86,7 +86,6 @@ function alertText(options) {
} }
function performInstallation(page, name, guid, version) { function performInstallation(page, name, guid, version) {
const developer = $('#developer', page).html().toLowerCase();
const repositoryUrl = $('#repositoryUrl', page).html().toLowerCase(); const repositoryUrl = $('#repositoryUrl', page).html().toLowerCase();
const alertCallback = function () { const alertCallback = function () {
@ -102,7 +101,7 @@ function performInstallation(page, name, guid, version) {
// Check the repository URL for the official Jellyfin repository domain, or // Check the repository URL for the official Jellyfin repository domain, or
// present the warning for 3rd party plugins. // present the warning for 3rd party plugins.
if (!repositoryUrl.startsWith("https://repo.jellyfin.org/")) { if (!repositoryUrl.startsWith('https://repo.jellyfin.org/')) {
loading.hide(); loading.hide();
let msg = globalize.translate('MessagePluginInstallDisclaimer'); let msg = globalize.translate('MessagePluginInstallDisclaimer');
msg += '<br/>'; msg += '<br/>';

View file

@ -168,7 +168,7 @@ export default function(view) {
e.preventDefault(); e.preventDefault();
const repositoryUrl = dialog.querySelector('#txtRepositoryUrl').value.toLowerCase(); const repositoryUrl = dialog.querySelector('#txtRepositoryUrl').value.toLowerCase();
const alertCallback = function () { const alertCallback = function () {
repositories.push({ repositories.push({
Name: dialog.querySelector('#txtRepositoryName').value, Name: dialog.querySelector('#txtRepositoryName').value,
@ -178,15 +178,15 @@ export default function(view) {
saveList(view); saveList(view);
dialogHelper.close(dialog); dialogHelper.close(dialog);
}; };
// Check the repository URL for the official Jellyfin repository domain, or // Check the repository URL for the official Jellyfin repository domain, or
// present the warning for 3rd party plugins. // 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'); let msg = globalize.translate('MessageRepositoryInstallDisclaimer');
msg += '<br/>'; msg += '<br/>';
msg += '<br/>'; msg += '<br/>';
msg += globalize.translate('PleaseConfirmRepositoryInstallation'); msg += globalize.translate('PleaseConfirmRepositoryInstallation');
confirm(msg, globalize.translate('HeaderConfirmRepositoryInstallation')).then(function () { confirm(msg, globalize.translate('HeaderConfirmRepositoryInstallation')).then(function () {
alertCallback(); alertCallback();
}).catch(() => { }).catch(() => {