diff --git a/lib/polyfill.coffee b/lib/polyfill.coffee index 44ad79c18..cba68a122 100644 --- a/lib/polyfill.coffee +++ b/lib/polyfill.coffee @@ -6,7 +6,7 @@ Polyfill = @visibility() <% } %> notificationPermission: -> - return if window.Notification and 'permission' of Notification + return if !window.Notification or 'permission' of Notification Object.defineProperty Notification, 'permission', get: -> switch webkitNotifications.checkPermission()