chrome-extensions-samples
chrome-extensions-samples copied to clipboard
when doing console.log(chrome.tabs) is it supposed to return undefined
every time i try to do chrome.tabs.query
it always says that it cannot read undefined. I tried doing console.log(chrome.tabs)
and found that it also gave undefined. Is this supposed to be the case?
For future notice, can you please add some code in context?
If you're calling it without the proper parameters, or in the wrong location it could very much return undefined if no tab is open.
Thanks!
Closing as @AhnafS did not share any code.