diff --git a/javascript/imageviewer.js b/javascript/imageviewer.js index fa7a67d5..aac2ee82 100644 --- a/javascript/imageviewer.js +++ b/javascript/imageviewer.js @@ -220,11 +220,6 @@ document.addEventListener("DOMContentLoaded", function() { modal.tabIndex = 0 modal.addEventListener('keydown', modalKeyHandler, true) - // detect gamepads and enable related functionality - let gamepadScript = document.createElement('script'); - gamepadScript.src = 'imageviewerGamepad.js'; - document.body.appendChild(gamepadScript); - const modalControls = document.createElement('div') modalControls.className = 'modalControls gradio-container'; modal.append(modalControls);