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.
- Clone this repository.
- Load this directory in Chrome as an unpacked extension.
- Open the side panel UI
- Choose "Multiple side panels" to see the welcome page.
- Navigate to https://developer.chrome.com to see the main side panel.