开发者

Google Chrome - Extension issues

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜