ZoteroPrintChild: Forward zoteroPrint() options (#4820)

This commit is contained in:
Abe Jellinek 2024-11-06 15:04:45 -05:00 • committed by Dan Stillman
parent c567905bf6
commit 7f26f246e7

View file

@ -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);
}
}