mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-10 17:38:41 +00:00
started with template fixes
This commit is contained in:
parent
415532ef90
commit
1e5de2413d
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user