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
|
||||
data = new Uint8Array xhr.response
|
||||
if typeof xhr.responseHeaders is 'object'
|
||||
# XXX https://github.com/infernoboy/JavaScript-Blocker/issues/35
|
||||
contentType = xhr.responseHeaders['Content-Type']
|
||||
contentDisposition = xhr.responseHeaders['Content-Disposition']
|
||||
else
|
||||
@ -60,6 +61,7 @@ CrossOrigin = do ->
|
||||
onabort: ->
|
||||
cb null
|
||||
if workaround
|
||||
# XXX https://github.com/infernoboy/JavaScript-Blocker/issues/35
|
||||
options.overrideMimeType = options.mimeType = 'text/plain; charset=x-user-defined'
|
||||
else
|
||||
options.responseType = 'arraybuffer'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user