Fix .close() not working
This commit is contained in:
parent
b0e0ad1876
commit
b57f1a8d75
1 changed files with 5 additions and 4 deletions
9
index.js
9
index.js
|
@ -151,10 +151,11 @@ class Tab {
|
|||
}
|
||||
|
||||
close () {
|
||||
this.tabContainer.removeChild(this.tab);
|
||||
this.tabGroup.viewContainer.removeChild(this.webview);
|
||||
this.tabGroup.removeTab(this);
|
||||
this.tabGroup.activateRecentTab();
|
||||
let tabGroup = this.tabGroup;
|
||||
tabGroup.tabContainer.removeChild(this.tab);
|
||||
tabGroup.viewContainer.removeChild(this.webview);
|
||||
tabGroup.removeTab(this);
|
||||
tabGroup.activateRecentTab();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue