From 363e1a72fbe3d7fb2557c53c91f773c0e7c1ca54 Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Sat, 6 Mar 2021 22:36:07 -0300 Subject: [PATCH] try moving Notification.requestPermission --- src/main/resources/web/auth.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/web/auth.js b/src/main/resources/web/auth.js index b2f1fbb..18362bd 100644 --- a/src/main/resources/web/auth.js +++ b/src/main/resources/web/auth.js @@ -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(); });