If no Notifications, we essentially don't have permission (should fix on iOS)

pull/4/head
David Baker 2015-07-23 19:33:37 -07:00
parent 79c2a5abd6
commit 674f90f27f
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ module.exports = {
}, },
havePermission: function() { havePermission: function() {
if (!this.supportsDesktopNotifications()) return false;
return global.Notification.permission == 'granted'; return global.Notification.permission == 'granted';
}, },