From be023c3a95acb48c01daba7a49011cece945cabf Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Mon, 27 Jan 2025 15:23:51 -0500 Subject: [PATCH] RemoteTranslate: Fix error when creating test --- chrome/content/zotero/actors/TranslationChild.jsm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,