RED-7316: no need for explicit initialization inside runWithCleanup.

This commit is contained in:
Nicoleta Panaghiu 2024-01-15 11:10:28 +02:00
parent 35f3ca2fd4
commit bf1eb887bb

View File

@ -151,13 +151,6 @@ export class PdfViewer {
}
await this.runWithCleanup(async () => {
try {
await this.PDFNet.initialize(this.#licenseKey);
} catch (e) {
this._errorService.set(e);
throw e;
}
this.#instance.UI.setTheme(this._userPreferenceService.getTheme());
this._logger.info('[PDF] Initialized');