From cf7a03dc26415528bc690147ba72c08e67dd65c8 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 28 Feb 2016 11:54:52 +0000 Subject: Key bindings; more minor tweaks. --- content_scripts/vimium_frontend.coffee | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 3220b084..2fc2dc35 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -117,15 +117,14 @@ window.initializeModes = -> if registryEntry.repeatLimit? and registryEntry.repeatLimit < count return unless confirm """ You have asked Vimium to perform #{count} repeats of the command: #{registryEntry.description}.\n - Are you sure you want to continue? """ + Are you sure you want to continue?""" if registryEntry.isBackgroundCommand - chrome.runtime.sendMessage { handler: "runBackgroundCommand", frameId, registryEntry, count} + chrome.runtime.sendMessage {handler: "runBackgroundCommand", frameId, registryEntry, count} + else if registryEntry.passCountToFunction + Utils.invokeCommandString registryEntry.command, [count] else - if registryEntry.passCountToFunction - Utils.invokeCommandString registryEntry.command, [count] - else - Utils.invokeCommandString registryEntry.command for i in [0...count] + Utils.invokeCommandString registryEntry.command for i in [0...count] # Install the permanent modes. The permanently-installed insert mode tracks focus/blur events, and # activates/deactivates itself accordingly. -- cgit v1.2.3