Files
chrome-extensions-samples/functional-samples/tutorial.quick-api-reference/README.md
Pasquale Riello b9df791e76 Fix #1084: quick-api-reference sample (#1099)
* 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>
2024-02-27 14:07:16 +00:00

18 lines
793 B
Markdown

# 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](https://developer.chrome.com/docs/extensions/get-started/tutorial/service-worker-events).
## Running this extension
1. Clone this repository.
2. Load this directory in Chrome as an [unpacked extension](https://developer.chrome.com/docs/extensions/mv3/getstarted/development-basics/#load-unpacked).
3. Type "api" in the omnibox followed by tab or space and select a suggestion.
4. Click on "Tip" button in the navigation bar.