Skip to content

Commit

Permalink
fixes #13050
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Sep 30, 2016
1 parent dcce493 commit ea19458
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vs/workbench/parts/html/browser/webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ export default class Webview {
this._onDidClickLink.dispose();
this._onDidLoadContent.dispose();
this._disposables = dispose(this._disposables);
this._webview.parentElement.removeChild(this._webview);

if (this._webview.parentElement) {
this._webview.parentElement.removeChild(this._webview);
}
}

get onDidClickLink(): Event<URI> {
Expand Down

0 comments on commit ea19458

Please sign in to comment.