From d0915d4f751ffc5187245191bc91c406708029cb Mon Sep 17 00:00:00 2001 From: inventionalt Date: Wed, 9 Oct 2024 14:19:51 +0200 Subject: [PATCH] Update script.js --- media/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/media/script.js b/media/script.js index 132d378..ebabf9c 100644 --- a/media/script.js +++ b/media/script.js @@ -56,12 +56,14 @@ function dropHandler(ev) { return; } window.player.load(URL.createObjectURL(file)); + document.getElementById('container').focus(); fitScreen() } }; } else { ev.dataTransfer.files.forEach((file, i) => { window.player.load(URL.createObjectURL(file)); + document.getElementById('container').focus(); fitScreen() }); }