addon.popup

Available in userscripts
Available in persistent scripts
Available in popup scripts ✔️
Required manifest permissions None

Description

Allows addon popup scripts to get information about the popup context.

Properties

addon.popup.isFullscreen

Type Boolean
Nullable No

Whether the current popup is displayed in fullscreen.

addon.popup.isLightMode

Type Boolean
Nullable No

Whether the user has enabled light mode on Scratch Addons settings.

Methods

addon.popup.getSelectedTabUrl

Return value Promise<String | null>

Gets the URL of the Scratch tab that is selected.


Last updated at 12 July 2021 by Hans5958 on commit d07183b. Improve this page.