From f12ba5ee6416a70c9d6a3943cc68c3b3c96475d4 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Tue, 19 Nov 2013 11:09:14 +0100 Subject: [PATCH] Opera is being weird with notifications. --- lib/polyfill.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/polyfill.coffee b/lib/polyfill.coffee index 8298d63ae..08ce47683 100644 --- a/lib/polyfill.coffee +++ b/lib/polyfill.coffee @@ -6,7 +6,7 @@ Polyfill = @visibility() <% } %> notificationPermission: -> - return if !window.Notification or 'permission' of Notification + return if !window.Notification or 'permission' of Notification or !window.webkitNotifications Object.defineProperty Notification, 'permission', get: -> switch webkitNotifications.checkPermission()