this check is not needed and breaks QR thumbnails on Tampermonkey

This commit is contained in:
ccd0 2014-05-17 21:18:02 -07:00
parent 50be3ab0bc
commit a8dd2ea56a

View File

@ -1,10 +1,8 @@
Polyfill = Polyfill =
init: -> init: ->
<% if (type === 'crx') { %>
@notificationPermission() @notificationPermission()
@toBlob() @toBlob()
@visibility() @visibility()
<% } %>
notificationPermission: -> notificationPermission: ->
return if !window.Notification or 'permission' of Notification or !window.webkitNotifications return if !window.Notification or 'permission' of Notification or !window.webkitNotifications
Object.defineProperty Notification, 'permission', Object.defineProperty Notification, 'permission',