Fx <23 doesn't have HTMLCanvasElement?
This commit is contained in:
parent
b7ddfa5c66
commit
4c6323dc6e
@ -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:
|
||||||
|
|||||||
@ -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..]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user