The following manifest is supposed to load the off.png browser action icon, but when I shut Chrome down while the on.png icon is active, it loads the same on icon automatically for some reason when I start up Chrome.
Is this some sort of a bug?
Manifest:
{
"background": {
"scripts": ["js/bg/bg.js" ],
"persistent": false
},
"browser_action": {
"default_icon": "style/off.png",
"default_title": "__MSG_mainTitle__"
},
"default_locale": "en",
"description": "__MSG_description__",
"icons": {
"128": "style/on.png"
},
"manifest_version": 2,
"name": "__MSG_name__",
"offline_enabled": true,
"version": "2.5.5"
}
bg.js:
chrome.browserAction.onClicked.addListener(function(){
chrome.browserAction.setIcon({path: "/style/" + 'on' + ".png"})
});