Merge pull request #17604 from Snuffleupagus/externalServices-lazy-init

Initialize the `ExternalServices`-instance lazily in the viewer (PR 17588 follow-up)
This commit is contained in:
Jonas Jenwald 2024-01-31 22:12:52 +01:00 committed by GitHub
commit eb5c1d441a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -145,7 +145,6 @@ const PDFViewerApplication = {
url: "",
baseUrl: "",
_downloadUrl: "",
externalServices: new ExternalServices(),
_boundEvents: Object.create(null),
documentInfo: null,
metadata: null,
@ -676,6 +675,10 @@ const PDFViewerApplication = {
}
},
get externalServices() {
return shadow(this, "externalServices", new ExternalServices());
},
get initialized() {
return this._initializedCapability.settled;
},