From c4fc5c3060b678980149f4fe679458b998aff2df Mon Sep 17 00:00:00 2001 From: jliddev Date: Tue, 28 Nov 2023 11:46:10 -0600 Subject: [PATCH] Update webview.component.ts --- .../src/app/components/common/webview/webview.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wowup-electron/src/app/components/common/webview/webview.component.ts b/wowup-electron/src/app/components/common/webview/webview.component.ts index 6470128..9293ec0 100644 --- a/wowup-electron/src/app/components/common/webview/webview.component.ts +++ b/wowup-electron/src/app/components/common/webview/webview.component.ts @@ -30,16 +30,16 @@ export class WebViewComponent implements OnDestroy, AfterViewInit { private _linkService: LinkService, private _sessionService: SessionService, private _uiMessageService: UiMessageService, - private _ngZone: NgZone + private _ngZone: NgZone, ) {} public ngAfterViewInit(): void { - this.initWebview(this.webviewContainer).catch((e) => console.error(e)); + this.initWebview(this.webviewContainer); this._electronService.on("webview-new-window", this.onWebviewNewWindow); this._uiMessageService.message$ .pipe( takeUntil(this.destroy$), - filter((msg) => msg.action === "ad-frame-reload") + filter((msg) => msg.action === "ad-frame-reload"), ) .subscribe(() => { if (this._webviewReady) {