From 7f26f246e75ae448d9c4e8f6dced9a98b3a0bee8 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 6 Nov 2024 15:04:45 -0500 Subject: [PATCH] ZoteroPrintChild: Forward zoteroPrint() options (#4820) --- chrome/content/zotero/actors/ZoteroPrintChild.jsm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/actors/ZoteroPrintChild.jsm b/chrome/content/zotero/actors/ZoteroPrintChild.jsm index d6ab50dac8..7957943995 100644 --- a/chrome/content/zotero/actors/ZoteroPrintChild.jsm +++ b/chrome/content/zotero/actors/ZoteroPrintChild.jsm @@ -4,8 +4,8 @@ var EXPORTED_SYMBOLS = ["ZoteroPrintChild"]; class ZoteroPrintChild extends JSWindowActorChild { actorCreated() { Cu.exportFunction( - () => new this.contentWindow.Promise( - (resolve, reject) => this._sendZoteroPrint().then(resolve, reject) + options => new this.contentWindow.Promise( + (resolve, reject) => this._sendZoteroPrint(options).then(resolve, reject) ), this.contentWindow, { defineAs: "zoteroPrint" } @@ -20,7 +20,7 @@ class ZoteroPrintChild extends JSWindowActorChild { } } - async _sendZoteroPrint() { - await this.sendQuery("zoteroPrint"); + async _sendZoteroPrint(options) { + await this.sendQuery("zoteroPrint", options); } }