aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--player.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/player.js b/player.js
index 69a9f28..02a9244 100644
--- a/player.js
+++ b/player.js
@@ -323,7 +323,7 @@ https://retrowave.ru/${musicData.streamUrl}
async function toggleFullScreen() {
if (!document.fullscreenElement) {
try {
- await document.documentElement.requestFullscreen();
+ await document?.documentElement?.requestFullscreen();
} catch (error) {
console.error("Error attempting to enable full-screen mode:", error);
showErrors(