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 () {
|
close () {
|
||||||
this.tabContainer.removeChild(this.tab);
|
let tabGroup = this.tabGroup;
|
||||||
this.tabGroup.viewContainer.removeChild(this.webview);
|
tabGroup.tabContainer.removeChild(this.tab);
|
||||||
this.tabGroup.removeTab(this);
|
tabGroup.viewContainer.removeChild(this.webview);
|
||||||
this.tabGroup.activateRecentTab();
|
tabGroup.removeTab(this);
|
||||||
|
tabGroup.activateRecentTab();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue