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

@ -2,16 +2,16 @@
if (HTMLElement.prototype.nativeFocus === undefined) {
(function () {
var supportsPreventScrollOption = false;
let supportsPreventScrollOption = false;
try {
var focusElem = document.createElement('div');
const focusElem = document.createElement('div');
focusElem.addEventListener('focus', function(event) {
event.preventDefault();
event.stopPropagation();
}, true);
var opts = Object.defineProperty({}, 'preventScroll', {
const opts = Object.defineProperty({}, 'preventScroll', {
// eslint-disable-next-line getter-return
get: function () {
supportsPreventScrollOption = true;
@ -27,8 +27,8 @@ if (HTMLElement.prototype.nativeFocus === undefined) {
HTMLElement.prototype.nativeFocus = HTMLElement.prototype.focus;
HTMLElement.prototype.focus = function(options) {
var scrollX = window.scrollX;
var scrollY = window.scrollY;
const scrollX = window.scrollX;
const scrollY = window.scrollY;
this.nativeFocus();