From 7b08973cef1758e3e7c4c5f291237dc3b779d6c6 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Wed, 1 Mar 2023 03:15:56 +0100 Subject: [PATCH] remove safari audio blop "hack" as it should not completely stop music that is playing in the background --- public/scripts/ui.js | 6 ------ public_included_ws_fallback/scripts/ui.js | 6 ------ 2 files changed, 12 deletions(-) diff --git a/public/scripts/ui.js b/public/scripts/ui.js index e864781..c4373ae 100644 --- a/public/scripts/ui.js +++ b/public/scripts/ui.js @@ -1791,9 +1791,3 @@ Notifications permission has been blocked as the user has dismissed the permission prompt several times. This can be reset in Page Info which can be accessed by clicking the lock icon next to the URL.`; - -document.body.onclick = _ => { // safari hack to fix audio - document.body.onclick = null; - if (!(/.*Version.*Safari.*/.test(navigator.userAgent))) return; - blop.play(); -} diff --git a/public_included_ws_fallback/scripts/ui.js b/public_included_ws_fallback/scripts/ui.js index da103ed..e33dddb 100644 --- a/public_included_ws_fallback/scripts/ui.js +++ b/public_included_ws_fallback/scripts/ui.js @@ -1792,9 +1792,3 @@ Notifications permission has been blocked as the user has dismissed the permission prompt several times. This can be reset in Page Info which can be accessed by clicking the lock icon next to the URL.`; - -document.body.onclick = _ => { // safari hack to fix audio - document.body.onclick = null; - if (!(/.*Version.*Safari.*/.test(navigator.userAgent))) return; - blop.play(); -}