From 374903d87e5dd8be736b150636d1909bebe4ddba Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Mon, 30 Jun 2025 03:02:36 +0530 Subject: Error Handling for Fullscreen --- player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- cgit v1.2.3