mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
add alarms permission, very minor update to a comment
This commit is contained in:
@@ -2,7 +2,7 @@ var DELAY = 0.1;
|
||||
var CATGIFS = "http://chilloutandwatchsomecatgifs.com/";
|
||||
|
||||
/*
|
||||
Restart alarm for the currently active tab, whenever this script is run.
|
||||
Restart alarm for the currently active tab, whenever background.js is run.
|
||||
*/
|
||||
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
|
||||
restartAlarm(tabs[0].id);
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
},
|
||||
|
||||
"permissions": [
|
||||
"alarms",
|
||||
"tabs"
|
||||
],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user