mirror of
https://github.com/zotero/zotero.git
synced 2026-09-29 01:41:24 +00:00
RemoteTranslate: Fix error when creating test
This commit is contained in:
parent
71d697801e
commit
be023c3a95
1 changed files with 3 additions and 1 deletions
|
|
@ -124,7 +124,9 @@ class TranslationChild extends JSWindowActorChild {
|
|||
(_tester, obj) => this._debug(id, obj),
|
||||
this._makeTranslatorProvider(id),
|
||||
);
|
||||
await tester.waitForDeferDelay(testInit?.defer);
|
||||
if (testInit) {
|
||||
await tester.waitForDeferDelay(testInit);
|
||||
}
|
||||
return await new Promise((resolve) => {
|
||||
tester.newTest(
|
||||
this.contentWindow.document,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue