aboutsummaryrefslogtreecommitdiff
path: root/src/background/controllers
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-08-01 21:29:32 +0900
committerGitHub <noreply@github.com>2019-08-01 21:29:32 +0900
commit7104f122f94e17ece56d2bd832d007c716e5631e (patch)
tree5de9d7ee7047402d8e341d342e6d5f5c44a1348d /src/background/controllers
parent3db11041c5b75c30b584893937876b6471e67cf2 (diff)
parentf65c068c67371f00b7853b4790b926e672f3ca4f (diff)
Merge pull request #621 from chocolateboy/tab-close-select-left
Add an option to close the current tab and select the tab to the left
Diffstat (limited to 'src/background/controllers')
-rw-r--r--src/background/controllers/OperationController.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/background/controllers/OperationController.ts b/src/background/controllers/OperationController.ts
index 51cff28..7a10ad6 100644
--- a/src/background/controllers/OperationController.ts
+++ b/src/background/controllers/OperationController.ts
@@ -32,7 +32,7 @@ export default class OperationController {
doOperation(operation: operations.Operation): Promise<any> {
switch (operation.type) {
case operations.TAB_CLOSE:
- return this.tabUseCase.close(false);
+ return this.tabUseCase.close(false, operation.select === 'left');
case operations.TAB_CLOSE_RIGHT:
return this.tabUseCase.closeRight();
case operations.TAB_CLOSE_FORCE: