mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 00:28:06 +02:00
[GeckoView] Allow to query pdf.js to know if we can avoid to print a pdf (bug 1846296)
This commit is contained in:
parent
ce9f94848c
commit
8bd4a18190
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