addon.popup

Available in userscripts
Available in popup scripts✔️
Required manifest permissionsNone

Description

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

Properties

addon.popup.isFullscreen

TypeBoolean
NullableNo

Whether the current popup is displayed in fullscreen.

addon.popup.isLightMode

TypeBoolean
NullableNo

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

Methods

addon.popup.getSelectedTabUrl

Return valuePromise<String | null>

Gets the URL of the Scratch tab that is selected.


Last updated at 22 April 2022 by RedGuy12 on commit 686f6b7. Improve this page.

Comments

Make sure to follow the code of conduct. You can see this comment section on GitHub Discussions, as well as editing and removing your comment.