Google Chrome Chrome browser and page action

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

I would like to use browser_action to display a popup with a list of bookmarks, while use page_action to give the user the option to bookmark the current page and load it into the list.

+3


source to share


1 answer


You can have only one of the app

, browser_action

, page_action

and theme

in your manifest to date. So you cannot have browser action

both page action

.

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

      

Work around



Use two different cross-message extensions with message .

Links

+7


source







All Articles