Note JS Blocker issues so we can remove the workaround when it's fixed.

This commit is contained in:
ccd0 2015-07-05 20:11:39 -07:00
parent 39aacf2ff3
commit d5ab88f678

View File

@ -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'