Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging

This commit is contained in:
yflory
2017-05-12 18:06:37 +02:00
2 changed files with 10 additions and 10 deletions

View File

@@ -101,11 +101,11 @@ define([], function () {
xhr.open("GET", src, true);
xhr.responseType = "arraybuffer";
xhr.onload = function () {
if ([200, 304].indexOf(this.status) === -1) {
return CB('XHR_ERROR');
}
return void CB(void 0, new Uint8Array(xhr.response));
};
xhr.onerror = function () {
CB('XHR_ERROR');
};
xhr.send(null);
};