It’s a little hard to find – getCurrent() returns the current hidden page for the extension.
chrome.tabs.getSelected(null, function(tab){
var baseUrl = tab.url;
console.log(baseUrl);
});
Principal Engineer
It’s a little hard to find – getCurrent() returns the current hidden page for the extension.
chrome.tabs.getSelected(null, function(tab){
var baseUrl = tab.url;
console.log(baseUrl);
});