Adonis K. Kakoulidis
Adonis K. Kakoulidis

Reputation: 5132

Google chrome extension browser & page action

Is there a way to add a page_action in an extension that already implements browser_action?

I'd like to use the browser_action to display a popup with a list of bookmarks while use the page_action to give the user a way to bookmark the current page and load it in the list.

Upvotes: 3

Views: 2309

Answers (1)

Sudarshan
Sudarshan

Reputation: 18564

You can only have one among app, browser_action, page_action and theme in your manifest till date. So, you can not have browser action and page action together.

// Pick one (or none)
  "browser_action": {...},
  "page_action": {...},
  "theme": {...},
  "app": {...},

Work Around

Use two different Extensions with cross extension message communication.

References

Upvotes: 7

Related Questions