0

I do have an extension (developed by me). It works fine. However I can't get the idea on how to launch extension from regular button on a web-page.

The main action (opens Chrome Popup) is performed when I click on extension icon.

But I also need to be able to launch extension via button click on website. Should I send a msg to extension from website via javascript or?

Or I can go in a different way, and insert content from extension popup to website placeholder. A bit awkward working with extensions.

Any advice appreciated.

Thank you.

Oliver White
  • 615
  • 6
  • 16
  • Just a suggestion, if you open your extension's elements inside the site in a modal, isn't an easy solution? Because there is no API to open the popup programmatically. – katsos Nov 29 '17 at 11:22
  • Programmatically opening the popup may not currently be possible but you can still communicate with you website form a content script and do any required operations that you would in the popup. – Luka Čelebić Nov 29 '17 at 15:46

1 Answers1

2

Unfortunately, it's not possible. But from the looks of it, it may be available soon.

Check out this answer in this thread.

maxpaj
  • 6,029
  • 5
  • 35
  • 56