-
What is the example you wish to see?declare browser_action in manifest Is there any context that might help us understand?I need to use the methods relying on module browser_action, such as setBadgeText. But befoe using them, I need to declare broser_action in manifest.json first. Just like this: https://developer.chrome.com/docs/extensions/reference/browserAction/#manifest Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Browser action has been renamed to action. You can manually specifying an action and remove the popup.tsx. To modify the generated manifest, see: https://docs.plasmo.com/framework/customization/manifest In most case, you likely won't need it tho, just call the action API from bgsw. |
Beta Was this translation helpful? Give feedback.
-
you con try "chrome.action.setBadgeText" ,not"chrome.browserAction.setBadgeText" |
Beta Was this translation helpful? Give feedback.
Browser action has been renamed to action. You can manually specifying an action and remove the popup.tsx. To modify the generated manifest, see: https://docs.plasmo.com/framework/customization/manifest
In most case, you likely won't need it tho, just call the action API from bgsw.