diff options
| author | Stephen Blott | 2015-05-29 17:06:55 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-05-29 17:14:25 +0100 |
| commit | 97bfe5f039ae9044fc634448ad3a97b1cdc05792 (patch) | |
| tree | f0cac6ea63e78fe53e2e0caeb34c8bb02c294bd2 /content_scripts/vimium_frontend.coffee | |
| parent | ff44941dc8d7f504d07d51e58955250609df6684 (diff) | |
| download | vimium-97bfe5f039ae9044fc634448ad3a97b1cdc05792.tar.bz2 | |
Verify keyword for custom search-engine activation.
For ...
map s Vomnibar.activate keyword=g
... we verify that "g" is indeed a custom search-engine keyword before
setting it. If it is not, we output a console.log message and launch a
vanilla vomnibar. (An alternative would be to bail.)
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 8c6dd374..005412e5 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -62,6 +62,7 @@ settings = helpDialog_showAdvancedCommands: null smoothScroll: null grabBackFocus: null + searchEngines: null init: -> @port = chrome.runtime.connect name: "settings" |
