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

run eslint to fix most var instances

This commit is contained in:
dkanada 2020-10-07 21:12:14 +09:00
parent 24699c0aca
commit 39eddeb205
55 changed files with 614 additions and 614 deletions

View file

@ -1,10 +1,10 @@
import * as webSettings from 'webSettings';
var themeStyleElement = document.querySelector('#cssTheme');
var currentThemeId;
let themeStyleElement = document.querySelector('#cssTheme');
let currentThemeId;
function unloadTheme() {
var elem = themeStyleElement;
const elem = themeStyleElement;
if (elem) {
elem.removeAttribute('href');
currentThemeId = null;
@ -17,7 +17,7 @@ function getThemes() {
function getThemeStylesheetInfo(id) {
return getThemes().then(themes => {
var theme = themes.find(theme => {
const theme = themes.find(theme => {
return id ? theme.id === id : theme.default;
});
@ -41,7 +41,7 @@ function setTheme(id) {
return;
}
var linkUrl = info.stylesheetPath;
const linkUrl = info.stylesheetPath;
unloadTheme();
let link = themeStyleElement;