Make Library#_initSave() async to match superclass

Fixes .catch() error
This commit is contained in:
Abe Jellinek 2025-07-02 10:33:25 -04:00 • committed by Dan Stillman
parent ce0ee4b693
commit ffb68f2f6c

View file

@ -481,7 +481,7 @@ Zotero.Library.prototype.save = async function (options) {
}
};
Zotero.Library.prototype._initSave = function (env) {
Zotero.Library.prototype._initSave = async function (env) {
if (this._libraryID === undefined) {
env.isNew = true;
@ -742,4 +742,4 @@ Zotero.Library.prototype.hasItem = function (item) {
throw new Error("item must be a Zotero.Item");
}
return item.libraryID == this.libraryID;
}
}