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(