Error Handling for Fullscreen
This commit is contained in:
@@ -323,7 +323,7 @@ https://retrowave.ru/${musicData.streamUrl}
|
|||||||
async function toggleFullScreen() {
|
async function toggleFullScreen() {
|
||||||
if (!document.fullscreenElement) {
|
if (!document.fullscreenElement) {
|
||||||
try {
|
try {
|
||||||
await document.documentElement.requestFullscreen();
|
await document?.documentElement?.requestFullscreen();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error attempting to enable full-screen mode:", error);
|
console.error("Error attempting to enable full-screen mode:", error);
|
||||||
showErrors(
|
showErrors(
|
||||||
|
|||||||
Reference in New Issue
Block a user