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

update var declerations

This commit is contained in:
Cameron 2020-07-10 20:05:00 +01:00
parent 8d17c6fc6f
commit 85b8671294
3 changed files with 28 additions and 28 deletions

View file

@ -3,7 +3,7 @@ import 'registerElement';
/* eslint-disable indent */
var EmbyTogglePrototype = Object.create(HTMLInputElement.prototype);
const EmbyTogglePrototype = Object.create(HTMLInputElement.prototype);
function onKeyDown(e) {
@ -31,11 +31,11 @@ import 'registerElement';
this.classList.add('mdl-switch__input');
var labelElement = this.parentNode;
const labelElement = this.parentNode;
labelElement.classList.add('mdl-switch');
labelElement.classList.add('mdl-js-switch');
var labelTextElement = labelElement.querySelector('span');
const labelTextElement = labelElement.querySelector('span');
labelElement.insertAdjacentHTML('beforeend', '<div class="mdl-switch__trackContainer"><div class="mdl-switch__track"></div><div class="mdl-switch__thumb"><span class="mdl-switch__focus-helper"></span></div></div>');