mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Fix .close() not working
This commit is contained in:
parent
b0e0ad1876
commit
b57f1a8d75
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