I want to get the current page URL from my default_popup
page like this:
chrome.tabs.query({active:true},function(tab){
url = tab.url;
});
And I have registered this popup.html
page in the manifest.json
file. Yet
I am getting the error message:
Uncaught Type Error: Cannot call method 'query' of undefined
What am I doing wrong?