chrome.tabs returns undefined despite the fact I set tabs in the permissions block.
chrome.tabs
\"permissions\": [ \"tabs\", \"http://*/*\", \"h
Check this answer also https://stackoverflow.com/a/6718277/449345 This one worked for me
chrome.tabs.getSelected(null, function(tab){ console.log(tab); });