mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Bugfix: wrong Notification.RequestAborted
This commit is contained in:
parent
ffb2f64170
commit
999389c6c5
2 changed files with 2 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ import * as Links from 'Common/Links';
|
|||
/**
|
||||
* Might not work due to the new ServiceWorkerRegistration.showNotification
|
||||
*/
|
||||
const HTML5Notification = window.Notification ? Notification : null,
|
||||
const HTML5Notification = window.Notification,
|
||||
HTML5NotificationStatus = () => (HTML5Notification && HTML5Notification.permission) || 'denied',
|
||||
NotificationsDenied = () => 'denied' === HTML5NotificationStatus(),
|
||||
NotificationsGranted = () => 'granted' === HTML5NotificationStatus(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue