Skip to content

Commit

Permalink
Don't try laying out disposed webview
Browse files Browse the repository at this point in the history
Fixes #73733
  • Loading branch information
mjbvz committed May 28, 2019
1 parent 30d1114 commit a202ed9
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -661,6 +661,9 @@ export class WebviewElement extends Disposable implements Webview {
}

public layout(): void {
if (!this._webview) {
return;
}
const contents = this._webview.getWebContents();
if (!contents || contents.isDestroyed()) {
return;
Expand Down

0 comments on commit a202ed9

Please sign in to comment.