mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 17:58:41 +00:00
started with template fixes
This commit is contained in:
parent
415532ef90
commit
1e5de2413d
|
|
@ -47,7 +47,7 @@ export class BrowserNotification
|
||||||
requestPermission ()
|
requestPermission ()
|
||||||
{
|
{
|
||||||
/** global: Notification */
|
/** global: Notification */
|
||||||
if (Notification.permission !== 'granted' && Notification.permission !== 'denied') {
|
if (Notification.permission !== 'granted' && Notification.permission !== 'denied' && window.isSecureContext) {
|
||||||
Notification.requestPermission();
|
Notification.requestPermission();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user