diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 1cafbf096a..208fc55d0b 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -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);