aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--background_scripts/commands.coffee7
-rw-r--r--content_scripts/vimium_frontend.coffee2
2 files changed, 2 insertions, 7 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee
index 7429b6f0..c13a09ba 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -24,12 +24,7 @@ Commands =
return
options ||= {}
- @availableCommands[command] =
- description: description
- isBackgroundCommand: options.background
- passCountToFunction: options.passCountToFunction
- noRepeat: options.noRepeat
- repeatLimit: options.repeatLimit
+ @availableCommands[command] = extend options, description: description
mapKeyToCommand: ({ key, command, options }) ->
unless @availableCommands[command]
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 0ae3d229..71535b19 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -120,7 +120,7 @@ class NormalMode extends KeyHandlerMode
if registryEntry.command.startsWith "Vomnibar."
chrome.runtime.sendMessage
handler: "sendMessageToFrames", message: {name: "openVomnibar", sourceFrameId: frameId, registryEntry}
- else if registryEntry.isBackgroundCommand
+ else if registryEntry.background
chrome.runtime.sendMessage {handler: "runBackgroundCommand", frameId, registryEntry, count}
else if registryEntry.passCountToFunction
Utils.invokeCommandString registryEntry.command, [count]