Skip to content

Commit

Permalink
Fix codefactor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
inventionpro authored Nov 24, 2024
1 parent 158cc31 commit c04bf5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions media/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ window.RufflePlayer.config = {
background: "#181818"
};
// On load set up ruffle
window.addEventListener("load", (event) => {
window.addEventListener("load", () => {
// Adding player
const ruffle = window.RufflePlayer.newest();
const player = ruffle.createPlayer();
Expand Down Expand Up @@ -59,9 +59,9 @@ function dropHandler(ev) {
document.getElementById('container').focus();
fitScreen()
}
};
}
} else {
ev.dataTransfer.files.forEach((file, i) => {
ev.dataTransfer.files.forEach((file) => {
window.player.load(URL.createObjectURL(file));
document.getElementById('container').focus();
fitScreen()
Expand Down

0 comments on commit c04bf5f

Please sign in to comment.