i am writing an extension which sets the extension-icon to an "active" one for a specific tab, but if i reload this tab by chrome.tabs.reload(id), the icon changes back to the default one.
Little code example:
chrome.browserAction.setIcon({
path: "img/icon_active.png",
tabId: 1
});
chrome.tabs.reload(1); // <--- resets the icon to the default one, why?
I need to stop reload from resetting the tabs icon. Does anybody know how to do this?