Reputation: 193
Documentation says we can have only browserAction or pageAction not both. Is there any trick for this? Or as solution is this good idea to use content script and insert button in a page?
Upvotes: 2
Views: 322
Reputation: 5143
There's no mechanism for a single extension to have more than one UI element in Chrome's chrome. You could certainly inject code into a page, and present some UI there, but you won't be able to have both a browserAction
and pageAction
in a single extension.
You could, on the other hand, have two extensions which communicate with each other via message passing. See chrome.extension.sendRequest
for details as to how that might work.
Upvotes: 2