Fixed notification check for iOS safari
This commit is contained in:
parent
1d5891de02
commit
f0bd1404b4
@ -1998,7 +1998,8 @@ angular.module('izhukov.utils', [])
|
|||||||
localNotificationsAvailable = false
|
localNotificationsAvailable = false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Notification.permission === 'denied') {
|
if (isAvailable &&
|
||||||
|
Notification.permission === 'denied') {
|
||||||
console.warn('The user has blocked notifications.')
|
console.warn('The user has blocked notifications.')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user