mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
Make Library#_initSave() async to match superclass
Fixes .catch() error
This commit is contained in:
parent
ce0ee4b693
commit
ffb68f2f6c
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue