Skip to content

Commit

Permalink
Merge pull request #1 from inventionalt/main
Browse files Browse the repository at this point in the history
Focus container
  • Loading branch information
inventionpro authored Oct 9, 2024
2 parents c7be106 + d0915d4 commit 7bc2809
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions media/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
});
}
Expand Down

0 comments on commit 7bc2809

Please sign in to comment.