1

I am working on a chrome extension that has 2 script files. One is attached to the manifest.json as content_scripts(page script). And I also have a script file attached to my add-on popup.html file(add-on script).

When I declare a var in my page script then I try calling it in my add-on script and I get undeclared varible.

Can can I get communications between the two scripts? Because if I try doing it all in one then it can not access the elements of the opposite page.

4

1 に答える 1