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
93ea818bf2
commit
cbb524d257
1 changed files with 3 additions and 2 deletions
|
@ -263,8 +263,9 @@ Zotero.Translators = new function() {
|
|||
});
|
||||
|
||||
|
||||
this.reinit = function (options = {}) {
|
||||
return this.init(Object.assign({}, options, { reinit: true }));
|
||||
this.reinit = async function (options = {}) {
|
||||
await this.init(Object.assign({}, options, { reinit: true }));
|
||||
await Zotero.QuickCopy.init();
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue