Fix sync and debug output submission in Nightly
(sendAsBinary() removal)
This commit is contained in:
parent
2afebc79d0
commit
b2d5612526
|
@ -730,9 +730,16 @@ Zotero_Preferences.Debug_Output = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
req.sendAsBinary(data);
|
// Send binary data
|
||||||
|
let numBytes = data.length, ui8Data = new Uint8Array(numBytes);
|
||||||
|
for (let i = 0; i < numBytes; i++) {
|
||||||
|
ui8Data[i] = data.charCodeAt(i) & 0xff;
|
||||||
|
}
|
||||||
|
req.send(ui8Data);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
Zotero.debug(e, 1);
|
||||||
|
Components.utils.reportError(e);
|
||||||
ps.alert(
|
ps.alert(
|
||||||
null,
|
null,
|
||||||
Zotero.getString('general.error'),
|
Zotero.getString('general.error'),
|
||||||
|
|
|
@ -1804,7 +1804,12 @@ Zotero.Sync.Server = new function () {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
req.sendAsBinary(data);
|
// Send binary data
|
||||||
|
let numBytes = data.length, ui8Data = new Uint8Array(numBytes);
|
||||||
|
for (let i = 0; i < numBytes; i++) {
|
||||||
|
ui8Data[i] = data.charCodeAt(i) & 0xff;
|
||||||
|
}
|
||||||
|
req.send(ui8Data);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
_error(e);
|
_error(e);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user