chrome-extensions-samples/functional-samples/cookbook.sidepanel-multiple
Oliver Dunk 77f3b8d807
Fix images in READMEs (#1178)
These were being loaded from a CDN from our old hosting
infrastructure for developer.chrome.com. This is no longer live,
and we shouldn't have been using external images anyway, so move
all of the images to the repo.

Fixes #1171
2024-06-06 14:28:26 +02:00
..
images [SidePanel API] Adds four examples (#890) 2023-05-03 11:19:49 -05:00
sidepanels Update dependencies (#1096) 2024-02-20 12:53:23 +01:00
README.md Fix images in READMEs (#1178) 2024-06-06 14:28:26 +02:00
manifest.json Update side panel examples to use action icon (#1155) 2024-05-07 11:42:07 +01:00
service-worker.js Update side panel examples to use action icon (#1155) 2024-05-07 11:42:07 +01:00

README.md

Multiple side panels example

You can use sidepanel.getOptions() to retrieve the current side panel and switch between side panels. This example sets a welcome side panel when the extension is first installed, then when the user navigates to a different tab, it replaces it with the main side panel.

Running this extension

  1. Clone this repository.
  2. Load this directory in Chrome as an unpacked extension.
  3. Open the side panel UI
  4. Choose "Multiple side panels" to see the welcome page.
Welcome side panel
  1. Navigate to https://developer.chrome.com to see the main side panel.
Main side panel