Fix .close() not working

This commit is contained in:
Thomas Brouard 2016-10-31 16:49:15 +01:00
parent b0e0ad1876
commit b57f1a8d75

View file

@ -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();
} }
} }