Another fixe for https://bugzilla.mozilla.org/show_bug.cgi?id=794602
This commit is contained in:
parent
c6b812f0b1
commit
66347c2734
|
@ -347,6 +347,8 @@ Zotero.Attachments = new function(){
|
||||||
try {
|
try {
|
||||||
wbp.saveURI(nsIURL, null, null, null, null, file);
|
wbp.saveURI(nsIURL, null, null, null, null, file);
|
||||||
} catch(e if e.name === "NS_ERROR_XPC_NOT_ENOUGH_ARGS") {
|
} catch(e if e.name === "NS_ERROR_XPC_NOT_ENOUGH_ARGS") {
|
||||||
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=794602
|
||||||
|
// XXX Always use when we no longer support Firefox < 18
|
||||||
wbp.saveURI(nsIURL, null, null, null, null, file, null);
|
wbp.saveURI(nsIURL, null, null, null, null, file, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -620,7 +622,13 @@ Zotero.Attachments = new function(){
|
||||||
throw (e);
|
throw (e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
wbp.saveURI(nsIURL, null, null, null, null, file);
|
try {
|
||||||
|
wbp.saveURI(nsIURL, null, null, null, null, file);
|
||||||
|
} catch(e if e.name === "NS_ERROR_XPC_NOT_ENOUGH_ARGS") {
|
||||||
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=794602
|
||||||
|
// XXX Always use when we no longer support Firefox < 18
|
||||||
|
wbp.saveURI(nsIURL, null, null, null, null, file, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add to collections
|
// Add to collections
|
||||||
|
|
Loading…
Reference in New Issue
Block a user