I'm new to Google Chrome extensions and I've created one for our website that checks the content of the page you're on and bases on that gets the ID of the server (we have a webfarm with 4 VM's). Now using the server ID, I wan't to change the extension icon to show the number there. I've tried using :
chrome.browserAction.setIcon({
path : folder + icons[2],
tabId: tab.id
});
But I'm getting this error: chrome.browserAction is not available: You do not have permission to access this API. Ensure that the required permission or manifest property is included in your manifest.json.
I've tried googling the error and have been searching through the documentation, but can't find what is causing this...