Fx <23 doesn't have HTMLCanvasElement?

This commit is contained in:
Mayhem 2013-08-13 20:58:06 +02:00
parent b7ddfa5c66
commit 4c6323dc6e
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,5 @@
- Fixed an error for Firefox <23 users.
## 3.7.0 - *2013-08-13* ## 3.7.0 - *2013-08-13*
- **Thread Watcher** improvements: - **Thread Watcher** improvements:

View File

@ -1,7 +1,9 @@
Polyfill = Polyfill =
init: -> init: ->
<% if (type === 'crx') { %>
Polyfill.toBlob() Polyfill.toBlob()
Polyfill.visibility() Polyfill.visibility()
<% } %>
toBlob: -> toBlob: ->
HTMLCanvasElement::toBlob or= (cb) -> HTMLCanvasElement::toBlob or= (cb) ->
data = atob @toDataURL()[22..] data = atob @toDataURL()[22..]