Files
chrome-extensions-samples/functional-samples/tutorial.quick-api-reference
Oliver Dunk 517cf1093e Move sw-tips tutorial to use chrome.dev (#1505)
Moves from the Glitch URL to chrome.dev, and removes the host
permissions as we now set CORS headers.
2025-07-10 15:31:51 +02:00
..
2024-12-03 10:50:45 +00:00

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

  1. Clone this repository.
  2. Load this directory in Chrome as an unpacked extension.
  3. Type "api" in the omnibox followed by tab or space and select a suggestion.
  4. Click on "Tip" button in the navigation bar.