mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-06-28 10:44:46 +02:00
try moving Notification.requestPermission
This commit is contained in:
parent
c0509744cd
commit
363e1a72fb
|
@ -1,7 +1,3 @@
|
|||
if (Notification.permission == "default") {
|
||||
Notification.requestPermission();
|
||||
}
|
||||
|
||||
// Minecraft.id
|
||||
let urlParams = new URLSearchParams();
|
||||
window.location.hash.substr(1).split("?").map(it => new URLSearchParams(it).forEach((a, b) => urlParams.append(b, a)));
|
||||
|
@ -401,5 +397,9 @@ $(() => {
|
|||
setInterval(refreshCorsStatus, 10 * 60 * 1000);
|
||||
refreshCorsStatus();
|
||||
|
||||
if (Notification.permission == "default") {
|
||||
Notification.requestPermission();
|
||||
}
|
||||
|
||||
connect();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user