mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
RemoteTranslate: Fix updated tests not inheriting defer
This commit is contained in:
parent
2afbe030d5
commit
2aee7ae8d5
1 changed files with 6 additions and 1 deletions
|
|
@ -131,7 +131,12 @@ class TranslationChild extends JSWindowActorChild {
|
|||
tester.newTest(
|
||||
this.contentWindow.document,
|
||||
Cu.exportFunction(
|
||||
(_, test) => resolve(test),
|
||||
(_, test) => {
|
||||
if (testInit?.defer) {
|
||||
test.defer = testInit.defer;
|
||||
}
|
||||
resolve(test);
|
||||
},
|
||||
this._sandbox
|
||||
),
|
||||
Cu.exportFunction(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue