Add Omnibox API example (#164)

* Add Omnibox API example

* Add an example for the omnibox api

* Resolved pull request comments and did some minor refactoring

* Resolved pull request comments and did some minor refactoring

* Fix error when handling default suggestion

* Fix error when handling default suggestion

* Require Firefox 52, update version to 1.0, and update match pattern to be more specific
This commit is contained in:
Matthew Wein
2016-12-16 15:26:19 -08:00
committed by wbamberg
parent 087c8a2f06
commit f5e9fbdf35
3 changed files with 132 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
{
"name": "Firefox Code Search",
"description" : "To use, type 'cs' plus a search term into the url bar.",
"version": "1.0",
"applications": {
"gecko": {
"strict_min_version": "52.0a1"
}
},
"background": {
"scripts": ["background.js"]
},
"omnibox": { "keyword" : "cs" },
"manifest_version": 2,
"permissions": [
"https://searchfox.org/"
]
}