开发者

Google Chrome - Extension issues

开发者 https://www.devze.com 2023-02-12 03:19 出处:网络
I\'m currently developing a chrome Extension and i wanted to know, how it\'s possible to put more then one button on a Extension. Because开发者_运维技巧 when i add for instance 2 reference on the mani

I'm currently developing a chrome Extension and i wanted to know, how it's possible to put more then one button on a Extension. Because开发者_运维技巧 when i add for instance 2 reference on the manifest.json, it only display the last one.

I also wanted to now how it's possible to add an input text instead if a button.

Thanks in advance.


No it is not possible, you can only add one browser action per extension. If your extension requires two browser actions, you should deploy two extension, where one of the extensions depends on the origin.

You can use chrome.extension.onRequestExternal.addListener to listen for external requests coming from your extension, and send messages between them with: chrome.extension.sendRequest

Hope that helped!

0

精彩评论

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