We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7062143 commit 2ed400cCopy full SHA for 2ed400c
app/renderer/js/components/server-tab.ts
@@ -44,7 +44,7 @@ export default class ServerTab extends Tab {
44
45
override async destroy(): Promise<void> {
46
await super.destroy();
47
- (await this.webview).$el.remove();
+ (await this.webview).destroy();
48
}
49
50
templateHtml(): Html {
app/renderer/js/components/webview.ts
@@ -116,6 +116,10 @@ export default class WebView {
116
this.registerListeners();
117
118
119
+ destroy(): void {
120
+ this.$el.remove();
121
+ }
122
+
123
getWebContents(): WebContents {
124
return remote.webContents.fromId(this.webContentsId);
125
0 commit comments