From 23d0ed2574969b5e1041ccb04edd3839ccc81e35 Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Sat, 6 Mar 2021 22:49:45 -0300 Subject: [PATCH] try to fix firefox mobile notification --- src/main/resources/web/auth.js | 3 ++- src/main/resources/web/index.html | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/web/auth.js b/src/main/resources/web/auth.js index 18362bd..419c898 100644 --- a/src/main/resources/web/auth.js +++ b/src/main/resources/web/auth.js @@ -400,6 +400,7 @@ $(() => { if (Notification.permission == "default") { Notification.requestPermission(); } - + $("#notificate").on("click", e => Notification.requestPermission()); + connect(); }); diff --git a/src/main/resources/web/index.html b/src/main/resources/web/index.html index d52eb97..927cbbc 100644 --- a/src/main/resources/web/index.html +++ b/src/main/resources/web/index.html @@ -62,6 +62,7 @@

WebSocket connection status: ?

CORS Proxy status: ?


+

Enable notifications