We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a500f28 commit c72500eCopy full SHA for c72500e
dom-pixels.js
@@ -64,8 +64,11 @@ function handleGif(data, cb) {
64
65
function httpGif(url, cb) {
66
var xhr = new XMLHttpRequest()
67
+ xhr.open('GET', url, true)
68
xhr.responseType = 'arraybuffer'
- xhr.overrideMimeType('application/binary')
69
+ if(xhr.overrideMimeType){
70
+ xhr.overrideMimeType('application/binary')
71
+ }
72
xhr.onerror = function(err) {
73
cb(err)
74
}
@@ -77,7 +80,6 @@ function httpGif(url, cb) {
77
80
handleGif(data, cb)
78
81
return
79
82
- xhr.open('GET', url, true)
83
xhr.send()
84
85
0 commit comments