diff --git a/index.js b/index.js index 1e951b0..d1697da 100644 --- a/index.js +++ b/index.js @@ -189,7 +189,8 @@ class Tab { // TODO: move } - close () { + close (force) { + if (!this.closable && !force) return; let tabGroup = this.tabGroup; tabGroup.tabContainer.removeChild(this.tab); tabGroup.viewContainer.removeChild(this.webview);