Skip to content

Commit

Permalink
Update webview.component.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jliddev committed Nov 28, 2023
1 parent 4acf597 commit c4fc5c3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c4fc5c3

Please sign in to comment.