diff options
| author | Stephen Blott | 2015-05-04 10:17:45 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-05-04 10:20:59 +0100 | 
| commit | 9de495ededee7f98504d6fe308ea73526956a7f3 (patch) | |
| tree | cdab70e76d064f01124d64458005c5c175ab9226 /background_scripts | |
| parent | 85aa77ce1daec7bd1452cd7813a0d5d408729408 (diff) | |
| download | vimium-9de495ededee7f98504d6fe308ea73526956a7f3.tar.bz2 | |
Search completion; hardwire search engines.
These should be removed later.
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/settings.coffee | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/background_scripts/settings.coffee b/background_scripts/settings.coffee index 07db3a89..b802937e 100644 --- a/background_scripts/settings.coffee +++ b/background_scripts/settings.coffee @@ -5,6 +5,8 @@  root = exports ? window  root.Settings = Settings =    get: (key) -> +    # FIXME(smblott). Remove this line. +    return @defaults.searchEngines if key == "searchEngines"      if (key of localStorage) then JSON.parse(localStorage[key]) else @defaults[key]    set: (key, value) -> @@ -92,6 +94,9 @@ root.Settings = Settings =      # put in an example search engine      searchEngines: [        # FIXME(smblott) Comment these out before merge. +      "# THESE ARE HARD WIRED.\n# YOU CANNOT CHANGE THEM IN THIS VERSION.\n# FOR DEVELOPMENT ONLY." +      "g: http://www.google.com/search?q=%s Google" +      "l: http://www.google.com/search?q=%s&btnI I'm feeling lucky..."        "w: http://www.wikipedia.org/w/index.php?title=Special:Search&search=%s Wikipedia"        "t: http://www.youtube.com/results?search_query=%s Youtube"        "m: https://www.google.com/maps/search/%s Google Maps"  | 
