-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* 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 <[email protected]>
- Loading branch information
1 parent
72eb0a4
commit b9df791
Showing
2 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters