From 1e5de2413d2e7d48ad5d0e18906d9729216f66ed Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 29 Mar 2024 15:26:01 +0000 Subject: [PATCH] started with template fixes --- Message/Notification/Browser/BrowserNotification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Message/Notification/Browser/BrowserNotification.js b/Message/Notification/Browser/BrowserNotification.js index 26a1e05..8d200e7 100755 --- a/Message/Notification/Browser/BrowserNotification.js +++ b/Message/Notification/Browser/BrowserNotification.js @@ -47,7 +47,7 @@ export class BrowserNotification requestPermission () { /** global: Notification */ - if (Notification.permission !== 'granted' && Notification.permission !== 'denied') { + if (Notification.permission !== 'granted' && Notification.permission !== 'denied' && window.isSecureContext) { Notification.requestPermission(); } };