diff --git a/chrome/content/zotero/actors/TranslationChild.jsm b/chrome/content/zotero/actors/TranslationChild.jsm index 5454004f09..5271174754 100644 --- a/chrome/content/zotero/actors/TranslationChild.jsm +++ b/chrome/content/zotero/actors/TranslationChild.jsm @@ -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,