From 54bbe4ecbdb53dddd97db18581edb0704b4cb76f Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Thu, 27 Dec 2018 20:06:32 +0900 Subject: Close only unpinned tabs; --- src/background/usecases/operation.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/background') diff --git a/src/background/usecases/operation.js b/src/background/usecases/operation.js index 74f484e..dd24e75 100644 --- a/src/background/usecases/operation.js +++ b/src/background/usecases/operation.js @@ -29,7 +29,10 @@ export default class OperationInteractor { return; } for (let i = index + 1; i < tabs.length; ++i) { - this.tabPresenter.remove(tabs[i].id); + let tab = tabs[i]; + if (!tab.pinned) { + this.tabPresenter.remove(tab.id); + } } } -- cgit v1.2.3