aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/vomnibar.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-05-30 06:16:24 +0100
committerStephen Blott2015-05-30 06:16:27 +0100
commit5930a6e3510f2bd052771601581aa410728d68e3 (patch)
treeaeb691f4aa86423189cf8e341aeb0558c385f906 /content_scripts/vomnibar.coffee
parent97bfe5f039ae9044fc634448ad3a97b1cdc05792 (diff)
downloadvimium-5930a6e3510f2bd052771601581aa410728d68e3.tar.bz2
Use the term "options" instead of "flags" for command options.
"Flags" implies binary toggles. The term "options" seems more consistent with what's actually going on here.
Diffstat (limited to 'content_scripts/vomnibar.coffee')
-rw-r--r--content_scripts/vomnibar.coffee10
1 files changed, 5 insertions, 5 deletions
diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee
index 06b546a6..4bd8e8fd 100644
--- a/content_scripts/vomnibar.coffee
+++ b/content_scripts/vomnibar.coffee
@@ -6,20 +6,20 @@ Vomnibar =
# Parse any additional options from the command's registry entry. Currently, this only includes a flag of
# the form "keyword=X", for direct activation of a custom search engine.
- parseRegistryEntry: (registryEntry = { extras: [] }, callback = null) ->
+ parseRegistryEntry: (registryEntry = { options: [] }, callback = null) ->
options = {}
searchEngines = settings.get("searchEngines") ? ""
SearchEngines.refreshAndUse searchEngines, (engines) ->
- for extra in registryEntry.extras
- [ key, value ] = extra.split "="
+ for option in registryEntry.options
+ [ key, value ] = option.split "="
switch key
when "keyword"
if value? and engines[value]?
options.keyword = value
else
- console.log "Vimium configuration error: no such custom search engine: #{extra}."
+ console.log "Vimium configuration error: no such custom search engine: #{option}."
else
- console.log "Vimium configuration error: unused flag: #{extra}."
+ console.log "Vimium configuration error: unused flag: #{option}."
callback? options