aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/main.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-02-28 11:07:21 +0000
committerStephen Blott2016-03-05 05:38:30 +0000
commit6e37f605fe45ee5eca03153c35c55c231e703c95 (patch)
tree1d73306bf8aebf2055786ea6bb18b8c94073b905 /background_scripts/main.coffee
parentf0c0a07a2dcb7c73f6aa93de166d8fa87e21f305 (diff)
downloadvimium-6e37f605fe45ee5eca03153c35c55c231e703c95.tar.bz2
Key bindings; minor tweaks.
Diffstat (limited to 'background_scripts/main.coffee')
-rw-r--r--background_scripts/main.coffee10
1 files changed, 2 insertions, 8 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index f5bf90a6..d1ca501d 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -369,16 +369,10 @@ chrome.tabs.onUpdated.addListener (tabId, changeInfo, tab) ->
# End action functions
-# Open Vomnibar in tab's main frame.
-openVomnibar = (tabId, frameId, registryEntry) ->
- chrome.tabs.sendMessage tabId,
- name: "openVomnibar"
- sourceFrameId: frameId
- registryEntry: registryEntry
-
runBackgroundCommand = ({frameId, registryEntry, count}, sender) ->
if registryEntry.command.split(".")[0] == "Vomnibar"
- openVomnibar sender.tab.id, frameId, registryEntry
+ chrome.tabs.sendMessage sender.tab.id,
+ name: "openVomnibar", sourceFrameId: frameId, registryEntry: registryEntry
else if registryEntry.passCountToFunction
BackgroundCommands[registryEntry.command] count, frameId
else if registryEntry.noRepeat