mirror of https://github.com/keeweb/keeweb.git
fixed a warning in XHR.send
This commit is contained in:
parent
27d86d8185
commit
0b8bc1afb0
|
@ -99,7 +99,11 @@ _.extend(StorageBase.prototype, {
|
|||
_.forEach(config.headers, (value, key) => {
|
||||
xhr.setRequestHeader(key, value);
|
||||
});
|
||||
xhr.send(config.data);
|
||||
let data = config.data;
|
||||
if (data instanceof ArrayBuffer) {
|
||||
data = new Uint8Array(data);
|
||||
}
|
||||
xhr.send(data);
|
||||
},
|
||||
|
||||
_openPopup(url, title, width, height) {
|
||||
|
|
Loading…
Reference in New Issue