Calling Content Script function on chrome.browserAction.onClicked

前端 未结 2 1887
余生分开走
余生分开走 2021-01-03 11:12

My question is fairly simple and I just want to figure out the easiest way to do this.

The current iteration of my chrome extension injects a DIV into the webpage w

2条回答
  •  感情败类
    2021-01-03 11:27

    devnull69 is correct, you need to use message passing. Also consider checking out chromeps. It's a small pubsub library I wrote for chrome extensions. Removes a lot of the overhead when writing message passing code.

提交回复
热议问题