manifest.json
{
"manifest_version": 2,
"name": "App name",
"description": "Description goes here",
"version": "1.0",
"background": {
"scripts": ["background.js"]
},
"permissions": [
"tabs",
"alarms"
],
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
}
}
I trying to create a function to make a popup "great" every minute like this:
chrome.alarms.onAlarm.addListener(function(){
alert('great');
});
Could someone please tell why is it not triggering that alert. I check the console, no error was displayed. Thanks.
See Question&Answers more detail:os