aboutsummaryrefslogtreecommitdiff
path: root/player.js
diff options
context:
space:
mode:
authorIndrajith K L2025-06-30 03:03:59 +0530
committerIndrajith K L2025-06-30 03:03:59 +0530
commit0a6d8aefbcbc485b9e9331aa83bba841c8a61e1a (patch)
tree465ea416218028adb79c9b08dffc4e566f5c0b01 /player.js
parent374903d87e5dd8be736b150636d1909bebe4ddba (diff)
downloadretrowave-player-0a6d8aefbcbc485b9e9331aa83bba841c8a61e1a.tar.gz
retrowave-player-0a6d8aefbcbc485b9e9331aa83bba841c8a61e1a.tar.bz2
retrowave-player-0a6d8aefbcbc485b9e9331aa83bba841c8a61e1a.zip
Remove DEBUG code
Diffstat (limited to 'player.js')
-rw-r--r--player.js15
1 files changed, 7 insertions, 8 deletions
diff --git a/player.js b/player.js
index 02a9244..30e7f1d 100644
--- a/player.js
+++ b/player.js
@@ -100,7 +100,7 @@
var hydra = new Hydra({ detectAudio: false });
modalEl.classList.remove("open");
getMusic().then(() => {
- playMusic();
+ playMusic();
});
initHydra();
initControls();
@@ -189,11 +189,11 @@
cursor = currentCursor;
currentTracks = tracks;
} catch (error) {
- console.error("Error fetching music:", error);
- showErrors(
- "Failed to fetch music. Please check your internet connection or try again later."
- );
- throw error; // rethrow the error to be caught in the catch block below
+ console.error("Error fetching music:", error);
+ showErrors(
+ "Failed to fetch music. Please check your internet connection or try again later."
+ );
+ throw error; // rethrow the error to be caught in the catch block below
}
}
@@ -327,8 +327,7 @@ https://retrowave.ru/${musicData.streamUrl}
} catch (error) {
console.error("Error attempting to enable full-screen mode:", error);
showErrors(
- "Failed to enter full-screen mode. Please check your browser settings." +
- error
+ "Failed to enter full-screen mode. Please check your browser settings."
);
}
} else {