I am still learning about all the Chrome Extension scheme, with background/content/popup scripts.
I have a page that runs some script on $(document).ready() and it sets a new variable in the window, that i can access in the website like "window.newVariableHere". I want to be able to echo the content of this variable whenever i open the Extension popup.
I tried, in the popup.js (which is being called in my popup.html) do a:
chrome.extension.getBackgroundPage()
But it wont show the new variable (that i am sure it was created). Any ideas on a better way to do this?
Thanks for all the ideas