Fix ES6 warning calling UInt8Array without 'new'
This commit is contained in:
parent
0e800f350c
commit
f78b18c692
|
@ -10,7 +10,7 @@ var dump = ZoteroUnit.dump;
|
||||||
function quit(failed) {
|
function quit(failed) {
|
||||||
// Quit with exit status
|
// Quit with exit status
|
||||||
if(!failed) {
|
if(!failed) {
|
||||||
OS.File.writeAtomic(FileUtils.getFile("ProfD", ["success"]).path, Uint8Array(0));
|
OS.File.writeAtomic(FileUtils.getFile("ProfD", ["success"]).path, new Uint8Array(0));
|
||||||
}
|
}
|
||||||
if(!ZoteroUnit.noquit) {
|
if(!ZoteroUnit.noquit) {
|
||||||
Components.classes['@mozilla.org/toolkit/app-startup;1'].
|
Components.classes['@mozilla.org/toolkit/app-startup;1'].
|
||||||
|
|
Loading…
Reference in New Issue
Block a user