Remove DEBUG code
This commit is contained in:
15
player.js
15
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 {
|
||||
|
||||
Reference in New Issue
Block a user