this check is not needed and breaks QR thumbnails on Tampermonkey
This commit is contained in:
parent
50be3ab0bc
commit
a8dd2ea56a
@ -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',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user