aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 }]