b9df791e76
* Add README.md * Fix issue related to website update Updated CSS selector and tweaked the TIP button * Update content.js Keeping newline * Update CSS styles Change padding, height and font sizes to make the button style more consistent with the navigation bar * Update functional-samples/tutorial.quick-api-reference/content.js * Update functional-samples/tutorial.quick-api-reference/README.md * Update functional-samples/tutorial.quick-api-reference/README.md --------- Co-authored-by: Oliver Dunk <oliver@oliverdunk.com> |
||
---|---|---|
.. | ||
images | ||
README.md | ||
content.js | ||
manifest.json | ||
service-worker.js | ||
sw-omnibox.js | ||
sw-tips.js |
README.md
Tutorial: Handling events
This sample demonstrates how to handle events with service workers.
Overview
The extension built allows users to quickly navigate to Chrome API reference pages using the omnibox.
The events from the following APIs have been handled: chrome.runtime
, chrome.omnibox
and chrome.alarms
.
The complete tutorial is available here.
Running this extension
- Clone this repository.
- Load this directory in Chrome as an unpacked extension.
- Type "api" in the omnibox followed by tab or space and select a suggestion.
- Click on "Tip" button in the navigation bar.