From f11dc611b31ea4c2c49ad3ad1fa7616ca6e18ba3 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Wed, 31 Jan 2024 20:22:57 +0100 Subject: [PATCH] Initialize the `ExternalServices`-instance lazily in the viewer (PR 17588 follow-up) --- web/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/app.js b/web/app.js index 27a8e4a18..2729e6c3b 100644 --- a/web/app.js +++ b/web/app.js @@ -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; },