Files
amysteamdev 9230a50346 [Side Panel API] Add copyright to sidepanel samples (#908)
* Add copyright to sidepanel samples

* Fix year

* Add error catching
and async
2023-05-04 11:14:22 -05:00
..

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