开发者

Background speaks to all tabs

开发者 https://www.devze.com 2023-03-30 06:27 出处:网络
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

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

精彩评论

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