From a7b3363d17a2d2d64a9add2e44a7f09a4f7460b1 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Fri, 21 Feb 2014 18:19:01 +0100 Subject: [PATCH 1/2] Up min Chrome version. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 412a1d33e..724abbf12 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "*://i.4cdn.org/*" ], "min": { - "chrome": "32", + "chrome": "33", "firefox": "26", "greasemonkey": "1.14" } From 271ee9290f3d53955643b13e41602fa2fa9dce49 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Fri, 21 Feb 2014 18:19:10 +0100 Subject: [PATCH 2/2] Remove Notification.permission and page visibility polyfills. --- lib/polyfill.coffee | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/lib/polyfill.coffee b/lib/polyfill.coffee index 08ce47683..e09a458b0 100644 --- a/lib/polyfill.coffee +++ b/lib/polyfill.coffee @@ -1,21 +1,8 @@ Polyfill = init: -> <% if (type === 'crx') { %> - @notificationPermission() @toBlob() - @visibility() <% } %> - notificationPermission: -> - return if !window.Notification or 'permission' of Notification or !window.webkitNotifications - Object.defineProperty Notification, 'permission', - get: -> - switch webkitNotifications.checkPermission() - when 0 - 'granted' - when 1 - 'default' - when 2 - 'denied' toBlob: -> HTMLCanvasElement::toBlob or= (cb) -> data = atob @toDataURL()[22..] @@ -25,12 +12,3 @@ Polyfill = for i in [0...l] by 1 ui8a[i] = data.charCodeAt i cb new Blob [ui8a], type: 'image/png' - visibility: -> - # page visibility API - return if 'visibilityState' of d - Object.defineProperties HTMLDocument.prototype, - visibilityState: - get: -> @webkitVisibilityState - hidden: - get: -> @webkitHidden - $.on d, 'webkitvisibilitychange', -> $.event 'visibilitychange'