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:
Dan Stillman 2022-11-01 03:17:26 -04:00
parent 93ea818bf2
commit cbb524d257

View file

@ -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();
};