Commit 679e8738 authored by missionfloyd's avatar missionfloyd Committed by GitHub

Update imageviewerGamepad.js

parent df59b74c
...@@ -24,7 +24,7 @@ window.addEventListener('gamepadconnected', (e) => { ...@@ -24,7 +24,7 @@ window.addEventListener('gamepadconnected', (e) => {
isWaiting = false; isWaiting = false;
} }
}, 10); }, 10);
window.addEventListener('gamepaddisconnected', (e) => clearInterval(gamepads[e.gamepad.index])) window.addEventListener('gamepaddisconnected', (e) => clearInterval(gamepads[e.gamepad.index]));
}); });
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment