提交 f926b958 编写于 作者: F flaki

Declare deliberate "async=true" on XMLHttpRequest open

On some installs, both Firefox & Chrome throws:
"Fetch failed: " DOMException [InvalidAccessError]: "A parameter or an operation is not supported by the underlying object"
Due to pre-set async=false (overridden prototype, maybe?)
This fixes the above issue.
上级 61f4a289
......@@ -274,7 +274,7 @@
reject(new TypeError('Network request failed'))
}
xhr.open(self.method, self.url)
xhr.open(self.method, self.url, true)
if ('responseType' in xhr && blobSupport) {
xhr.responseType = 'blob'
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册