aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorStephen Blott2016-03-26 12:02:55 +0000
committerStephen Blott2016-03-26 12:02:55 +0000
commite133f8d2b3d104568959759e8ec7cf907257eb1b (patch)
treeb3d2b7f6998675fd65cac10924f1edc02f1c08f5 /background_scripts
parentb3f9dc520a8f7245db44f843b3994d5e32b19eeb (diff)
downloadvimium-e133f8d2b3d104568959759e8ec7cf907257eb1b.tar.bz2
Simplify expression.
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/commands.coffee4
1 files changed, 1 insertions, 3 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee
index 209b5ea3..2d901b15 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -357,9 +357,7 @@ commandDescriptions =
createTab: ["Create new tab", { background: true, repeatLimit: 20 }]
duplicateTab: ["Duplicate current tab", { background: true, repeatLimit: 20 }]
- removeTab: ["Close current tab", { background: true, repeatLimit:
- # Require confirmation to remove more tabs than we can restore.
- (if chrome.session then chrome.session.MAX_SESSION_RESULTS else 25) }]
+ removeTab: ["Close current tab", { background: true, repeatLimit: chrome.session?.MAX_SESSION_RESULTS ? 25 }]
restoreTab: ["Restore closed tab", { background: true, repeatLimit: 20 }]
moveTabToNewWindow: ["Move tab to new window", { background: true }]