{
"name": "coffee",
"manifest_version":2,
"version": "1.0",
"description": "testing coffee app",
"browser_action": {
"default_icon": "icon.png" ,
"default_title": "My Task List",
"default_popup": "popup.html"
},
"background": {
"scripts": ["background.js"]
},
"content_scripts": [{
"matches": ["http://*/*","https://*/*" ],
"js": ["inject.js"],
"run_at": "document_end",
"all_frames": true
}],
"permissions": [
"tabs", "http://*/*","https://*/*"
]
}
manifest.josn
count=1;
background.js
var bgpg=chrome.extension.getBackgroundPage();
if(bgpg)
{
alert("ok");
if(bgpg.count>=0){
bgpg.count=bgpg.count+1;
}else{
bgpg.count=0;
}
alert(bgpg.count);
}else{alert("NO");}
inject.js.
No changes were made. I managed to access the background value last week, but today I seem to have lost track of what might be causing the issue.