Fixed notification check for iOS safari

This commit is contained in:
Igor Zhukov 2016-12-16 18:24:03 +03:00
parent 1d5891de02
commit f0bd1404b4

View File

@ -1998,7 +1998,8 @@ angular.module('izhukov.utils', [])
localNotificationsAvailable = false
}
if (Notification.permission === 'denied') {
if (isAvailable &&
Notification.permission === 'denied') {
console.warn('The user has blocked notifications.')
}