mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #16776 from calixteman/gv_print_or_save
[GeckoView] Allow to query pdf.js to know if we can avoid to print a pdf (bug 1846296)
This commit is contained in:
commit
4735ed8f16
3 changed files with 46 additions and 2 deletions
|
@ -3021,7 +3021,7 @@ class WorkerTransport {
|
|||
}
|
||||
|
||||
getDocJSActions() {
|
||||
return this.messageHandler.sendWithPromise("GetDocJSActions", null);
|
||||
return this.#cacheSimpleMethod("GetDocJSActions");
|
||||
}
|
||||
|
||||
getPageJSActions(pageIndex) {
|
||||
|
|
|
@ -208,7 +208,7 @@ class OptionalContentConfig {
|
|||
}
|
||||
|
||||
get hasInitialVisibility() {
|
||||
return this.getHash() === this.#initialHash;
|
||||
return this.#initialHash === null || this.getHash() === this.#initialHash;
|
||||
}
|
||||
|
||||
getOrder() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue