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 228e8407a7
commit cbb1ebad33

View file

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