开发者

Background speaks to all tabs

When I make a change in my extension, the content scri开发者_如何学JAVApt lets the background page know. I would like to then let every other content script know of this change. How do I keep track of or is there a command that will return me the content scripts running my extension?

Thanks much.


Just loop through all tabs in all windows (chrome.windows.getAll({populate: true})) and send request to every tab.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜