diff --git a/pikaraoke/templates/splash.html b/pikaraoke/templates/splash.html index 637cb5ba..009b83a7 100644 --- a/pikaraoke/templates/splash.html +++ b/pikaraoke/templates/splash.html @@ -13,6 +13,9 @@ video.readyState > 2 ); + const isFirefox = typeof InstallTrigger !== "undefined"; + const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); + var mouseTimer = null, cursorVisible = true; @@ -270,6 +273,12 @@ let params = new URLSearchParams(window.location.search); let dismissConfirmation = params.get("confirm"); + if (isFirefox || isSafari) { + confirm( + "This browser is not supported. You may experience streaming issues. Please use Chrome for best results." + ); + } + if (dismissConfirmation === "false") { let modal = document.getElementById("permissions-modal"); modal.classList.remove("is-active"); @@ -303,7 +312,9 @@