mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
space
This commit is contained in:
parent
2ebce8eb7b
commit
ade01f6cf7
@ -38,6 +38,7 @@ class RequestResult {
|
|||||||
function send(url, {method, headers, timeout, body, format}) {
|
function send(url, {method, headers, timeout, body, format}) {
|
||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
xhr.open(method, url);
|
xhr.open(method, url);
|
||||||
|
|
||||||
if (format === "buffer") {
|
if (format === "buffer") {
|
||||||
// important to call this after calling open
|
// important to call this after calling open
|
||||||
xhr.responseType = "arraybuffer";
|
xhr.responseType = "arraybuffer";
|
||||||
|
Loading…
Reference in New Issue
Block a user