mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Initialize the ExternalServices
-instance lazily in the viewer (PR 17588 follow-up)
This commit is contained in:
parent
9588bceff5
commit
f11dc611b3
1 changed files with 4 additions and 1 deletions
|
@ -145,7 +145,6 @@ const PDFViewerApplication = {
|
||||||
url: "",
|
url: "",
|
||||||
baseUrl: "",
|
baseUrl: "",
|
||||||
_downloadUrl: "",
|
_downloadUrl: "",
|
||||||
externalServices: new ExternalServices(),
|
|
||||||
_boundEvents: Object.create(null),
|
_boundEvents: Object.create(null),
|
||||||
documentInfo: null,
|
documentInfo: null,
|
||||||
metadata: null,
|
metadata: null,
|
||||||
|
@ -676,6 +675,10 @@ const PDFViewerApplication = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
get externalServices() {
|
||||||
|
return shadow(this, "externalServices", new ExternalServices());
|
||||||
|
},
|
||||||
|
|
||||||
get initialized() {
|
get initialized() {
|
||||||
return this._initializedCapability.settled;
|
return this._initializedCapability.settled;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue