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

manual changes for no-var eslint rule

This commit is contained in:
dkanada 2020-10-08 00:47:23 +09:00
parent 3374114a37
commit 237e8ddc4c
8 changed files with 13 additions and 12 deletions

View file

@ -248,7 +248,7 @@ let inputLoopTimer;
function runInputLoop() {
// Get the latest gamepad state.
const gamepads = navigator.getGamepads(); /* eslint-disable-line compat/compat */
for (var i = 0, len = gamepads.length; i < len; i++) {
for (let i = 0, len = gamepads.length; i < len; i++) {
const gamepad = gamepads[i];
if (!gamepad) {
continue;
@ -273,7 +273,7 @@ function runInputLoop() {
}
// Iterate through the buttons to see if Left thumbstick, DPad, A and B are pressed.
const buttons = gamepad.buttons;
for (var j = 0, len = buttons.length; j < len; j++) {
for (let j = 0, len = buttons.length; j < len; j++) {
if (ProcessedButtons.indexOf(j) !== -1) {
if (buttons[j].pressed) {
switch (j) {