mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
parent
fdb31b17bc
commit
12ed941e76
1 changed files with 2 additions and 2 deletions
|
|
@ -1546,7 +1546,7 @@ Zotero.Item.prototype.save = function() {
|
|||
let attachmentFile = Components.classes["@mozilla.org/file/local;1"]
|
||||
.createInstance(Components.interfaces.nsILocalFile);
|
||||
try {
|
||||
attachmentFile.initWithPath(path);
|
||||
attachmentFile.persistentDescriptor = path;
|
||||
}
|
||||
catch (e) {
|
||||
Zotero.debug(e, 1);
|
||||
|
|
@ -1981,7 +1981,7 @@ Zotero.Item.prototype.save = function() {
|
|||
let attachmentFile = Components.classes["@mozilla.org/file/local;1"]
|
||||
.createInstance(Components.interfaces.nsILocalFile);
|
||||
try {
|
||||
attachmentFile.initWithPath(path);
|
||||
attachmentFile.persistentDescriptor = path;
|
||||
}
|
||||
catch (e) {
|
||||
Zotero.debug(e, 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue