mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
Moves from the Glitch URL to chrome.dev, and removes the host permissions as we now set CORS headers.
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.