From 90e5632363aeddac9563d67c4c56caf82c58c4e8 Mon Sep 17 00:00:00 2001 From: MatMasIt Date: Sat, 9 Oct 2021 19:34:40 +0200 Subject: [PATCH] Stoopid iOS --- js/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 8a9af32..d7030d5 100644 --- a/js/main.js +++ b/js/main.js @@ -22,7 +22,9 @@ function sef(filename) { new Audio("assets/music/" + filename + ".mp3").play(); } $("#playBegin").click(function () { - document.getElementsByTagName("html")[0].requestFullscreen(); + try { + document.getElementsByTagName("html")[0].requestFullscreen(); + } catch(e){} audiosegm(); $(this).fadeOut(); }); @@ -104,4 +106,4 @@ $(".ans").click(function () { } displayQuestion(); $("#correct").fadeOut(); -}); \ No newline at end of file +});