aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-12-27 20:06:32 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-12-27 20:06:32 +0900
commit54bbe4ecbdb53dddd97db18581edb0704b4cb76f (patch)
tree05b77f273354dd99448c8590cb101b2b89d75023 /src/background
parentc03ab2862bf1fe015a0f7e9d9baf6738d639d425 (diff)
Close only unpinned tabs;
Diffstat (limited to 'src/background')
-rw-r--r--src/background/usecases/operation.js5
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);
+ }
}
}