I am not sure if the manifest is case-sensitive, but you probably don’t want to capitalize permissions
and tabs
:
"permissions": [
"tabs"
]
and the chrome.tabs.getSelected
function is deprecated in favor of chrome.tabs.query
, which gives you a list of tabs that match the first argument predicate:
chrome.tabs.query({active: true}, function(tabs) {
for (var i in tabs) {
console.log(tabs[i].url);
}
});
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/7de59948-e21f-4e0e-8292-3a4bfc2f9fa1%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
Thanks, with chrome.tabs.query it works ! And the manifest isn't case-sensitive.