mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-05-20 19:35:01 +00:00
remove safari audio blop "hack" as it should not completely stop music that is playing in the background
This commit is contained in:
@@ -1791,9 +1791,3 @@ Notifications permission has been blocked
|
|||||||
as the user has dismissed the permission prompt several times.
|
as the user has dismissed the permission prompt several times.
|
||||||
This can be reset in Page Info
|
This can be reset in Page Info
|
||||||
which can be accessed by clicking the lock icon next to the URL.`;
|
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();
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1792,9 +1792,3 @@ Notifications permission has been blocked
|
|||||||
as the user has dismissed the permission prompt several times.
|
as the user has dismissed the permission prompt several times.
|
||||||
This can be reset in Page Info
|
This can be reset in Page Info
|
||||||
which can be accessed by clicking the lock icon next to the URL.`;
|
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();
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user