From 7c9f43a5f091d578bd15cb7f5471b53865ae6b4e Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sat, 17 Aug 2013 23:00:06 +0200 Subject: [PATCH] Fix Polyfill.notificationPermission on Opera. Opera doesn't have notifications. --- lib/polyfill.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()