Opera is being weird with notifications.

This commit is contained in:
Mayhem 2013-11-19 11:09:14 +01:00
parent 7118c71695
commit f12ba5ee64

View File

@ -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()