diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-12-27 20:06:32 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-12-27 20:06:32 +0900 |
commit | 54bbe4ecbdb53dddd97db18581edb0704b4cb76f (patch) | |
tree | 05b77f273354dd99448c8590cb101b2b89d75023 /src/background | |
parent | c03ab2862bf1fe015a0f7e9d9baf6738d639d425 (diff) |
Close only unpinned tabs;
Diffstat (limited to 'src/background')
-rw-r--r-- | src/background/usecases/operation.js | 5 |
1 files changed, 4 insertions, 1 deletions
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); + } } } |