开发者

How can I open my chrome extension's popup page from the extension's content script?

开发者 https://www.devze.com 2023-02-08 23:32 出处:网络
I have a content script which injects a button to th开发者_高级运维e document. I want to open the extension\'s popup when the button is clicked.You cannot open the extension\'s popup programmatically.

I have a content script which injects a button to th开发者_高级运维e document. I want to open the extension's popup when the button is clicked.


You cannot open the extension's popup programmatically. That is by design. Perhaps you can use a page action instead?

Good Luck!

0

精彩评论

暂无评论...
验证码 换一张
取 消