RED-7316: no need for explicit initialization inside runWithCleanup.
This commit is contained in:
parent
35f3ca2fd4
commit
bf1eb887bb
@ -151,13 +151,6 @@ export class PdfViewer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await this.runWithCleanup(async () => {
|
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.#instance.UI.setTheme(this._userPreferenceService.getTheme());
|
||||||
this._logger.info('[PDF] Initialized');
|
this._logger.info('[PDF] Initialized');
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user