aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndrajith K L2022-11-26 21:58:07 +0530
committerIndrajith K L2022-11-26 21:58:07 +0530
commit9624d079ced6378747c87c58a3596eb81a33d0eb (patch)
tree2c9b591859c8b69c4c29600670709a878221a885
parent4a80b3516419ab09c6a18240f25f5fc012822a83 (diff)
downloadretrowave-player-9624d079ced6378747c87c58a3596eb81a33d0eb.tar.gz
retrowave-player-9624d079ced6378747c87c58a3596eb81a33d0eb.tar.bz2
retrowave-player-9624d079ced6378747c87c58a3596eb81a33d0eb.zip
* Code Cleanup - dahh
-rw-r--r--player.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/player.js b/player.js
index e3c1b49..e83c3db 100644
--- a/player.js
+++ b/player.js
@@ -7,7 +7,7 @@
let titleEl = document.getElementById("track-name");
let coverArtEl = document.getElementsByClassName("music-player")[0];
const modalEl = document.getElementById("intro-modal");
- const uploadInfoEl = document.getElementById("upload-info");
+ // const uploadInfoEl = document.getElementById("upload-info");
const fileUploadEl = document.getElementById("file-upload");
let volume = 1;
openDialog();
@@ -21,13 +21,13 @@
}
});
- uploadInfoEl.addEventListener("click", () => {
- const confirmText = `Do you really want to change your playlist?\nThis will replace all your retrowave music history.\nIf you are sure about this, make sure to upload a valid json file probably downloaded using history link.`;
+ // uploadInfoEl.addEventListener("click", () => {
+ // const confirmText = `Do you really want to change your playlist?\nThis will replace all your retrowave music history.\nIf you are sure about this, make sure to upload a valid json file probably downloaded using history link.`;
- if (confirm(confirmText)) {
- fileUploadEl.click();
- }
- });
+ // if (confirm(confirmText)) {
+ // fileUploadEl.click();
+ // }
+ // });
function listenUploadFileChange() {
fileUploadEl.onchange = function () {