30
rated 0 times
[
34]
[
4]
/ answers: 1 / hits: 48898
/ 13 Years ago, sat, july 16, 2011, 12:00:00
The code is meant to output the current tab object for the page the user is viewing to the console but it just outputs undefined. It's run from within a browser action page.
chrome.tabs.getCurrent( function(tab){
console.log(tab);
} );
I've looked at the documentation and as far as I can tell the code seems to match what it says.
More From » html