0

First of all I'm not developing on Vue, I'm writing some code and injecting it on a Vue developed website through a chrome extension. I tested first with Tampermonkey injecting a script and accesing the vue object of a chat window and a button so i could simulate sending messages, and it worked perfectly. So I proceded to port the code to a "content script" that is injected into the site by chrome and so far so good, except that for some reason when i try accessing the vue object it's undefined. If i go to the console and query the element of the page and check the object it's in fact there while the script is running. So any idea why i can see it on a script injected with TamperMonkey, on the browsers console, but not on the content script of a chrome extension?

0 Answers0