Available in userscripts | ❌ |
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.
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.