mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-04 09:30:00 +01:00
try to fix tor browser
This commit is contained in:
parent
716207e994
commit
3fca13cfef
@ -1,5 +1,7 @@
|
||||
// SW
|
||||
navigator.serviceWorker.register("sw.js");
|
||||
if (navigator.serviceWorker) {
|
||||
navigator.serviceWorker.register("sw.js");
|
||||
}
|
||||
|
||||
// Minecraft.id
|
||||
let urlParams = new URLSearchParams();
|
||||
@ -317,7 +319,7 @@ function handleSWMsg(event) {
|
||||
callback(data.action);
|
||||
}
|
||||
function authNotification(msg, yes, no) {
|
||||
if ((!pageBlur && !document.hidden) || Notification.permission != "granted") {
|
||||
if (!navigator.serviceWorker || (!pageBlur && !document.hidden) || Notification.permission != "granted") {
|
||||
if (confirm(msg)) yes(); else no();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user