mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
ZoteroPrintChild: Forward zoteroPrint() options (#4820)
This commit is contained in:
parent
c567905bf6
commit
7f26f246e7
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue