Fix Quick Copy drag after reiniting translators
Zotero.Translators.reinit() didn't reinit Quick Copy, so if an export translator was selected it wouldn't be preloaded again and dragging would fail with "Code promise is not resolved in noWait mode".
This commit is contained in:
parent
228e8407a7
commit
cbb1ebad33
1 changed files with 3 additions and 2 deletions
|
@ -263,8 +263,9 @@ Zotero.Translators = new function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
this.reinit = function (options = {}) {
|
this.reinit = async function (options = {}) {
|
||||||
return this.init(Object.assign({}, options, { reinit: true }));
|
await this.init(Object.assign({}, options, { reinit: true }));
|
||||||
|
await Zotero.QuickCopy.init();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue