Note JS Blocker issues so we can remove the workaround when it's fixed.
This commit is contained in:
parent
39aacf2ff3
commit
d5ab88f678
@ -49,6 +49,7 @@ CrossOrigin = do ->
|
|||||||
else
|
else
|
||||||
data = new Uint8Array xhr.response
|
data = new Uint8Array xhr.response
|
||||||
if typeof xhr.responseHeaders is 'object'
|
if typeof xhr.responseHeaders is 'object'
|
||||||
|
# XXX https://github.com/infernoboy/JavaScript-Blocker/issues/35
|
||||||
contentType = xhr.responseHeaders['Content-Type']
|
contentType = xhr.responseHeaders['Content-Type']
|
||||||
contentDisposition = xhr.responseHeaders['Content-Disposition']
|
contentDisposition = xhr.responseHeaders['Content-Disposition']
|
||||||
else
|
else
|
||||||
@ -60,6 +61,7 @@ CrossOrigin = do ->
|
|||||||
onabort: ->
|
onabort: ->
|
||||||
cb null
|
cb null
|
||||||
if workaround
|
if workaround
|
||||||
|
# XXX https://github.com/infernoboy/JavaScript-Blocker/issues/35
|
||||||
options.overrideMimeType = options.mimeType = 'text/plain; charset=x-user-defined'
|
options.overrideMimeType = options.mimeType = 'text/plain; charset=x-user-defined'
|
||||||
else
|
else
|
||||||
options.responseType = 'arraybuffer'
|
options.responseType = 'arraybuffer'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user