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

Add polyfills to fix errors and ignore conditional lines

This commit is contained in:
MrTimscampi 2020-04-04 21:29:53 +02:00
parent 3c2bba3418
commit 0c2cdfe741
17 changed files with 129 additions and 20 deletions

View file

@ -159,7 +159,9 @@ function attachGamepadScript(e) {
}
// No need to check for gamepads manually at load time, the eventhandler will be fired for that
window.addEventListener("gamepadconnected", attachGamepadScript);
if (navigator.getGamepads) { /* eslint-disable-line compat/compat */
window.addEventListener("gamepadconnected", attachGamepadScript);
}
export default {
enable: enable,