aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorStephen Blott2016-12-11 15:43:56 +0000
committerStephen Blott2016-12-11 15:43:56 +0000
commit849829d41469e113fc81cbe1b65d32b511e59905 (patch)
treef5102b630ac302d412644480fe73385d03d28970 /background_scripts
parentf490b85757656c2276dcb9faa6237ca8231f8046 (diff)
downloadvimium-849829d41469e113fc81cbe1b65d32b511e59905.tar.bz2
Documentation for updates.
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee3
1 files changed, 3 insertions, 0 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 283826de..72f87a7e 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -145,6 +145,9 @@ mkRepeatCommand = (command) -> (request) ->
# These are commands which are bound to keystrokes which must be handled by the background page. They are
# mapped in commands.coffee.
BackgroundCommands =
+ # Create a new tab. Also, with:
+ # map X createTab http://www.bbc.com/news
+ # create a new tab with the given URL.
createTab: mkRepeatCommand (request, callback) ->
request.urls ?=
if request.url