-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstartup.js
28 lines (27 loc) · 948 Bytes
/
startup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
chrome.runtime.onInstalled.addListener(() => {
console.log('This extension is running now!');
chrome.storage.sync.set({sunday: 0}, function() {
console.log('monday is set to ' + 0);
});
chrome.storage.sync.set({monday: 0}, function() {
console.log('monday is set to ' + 0);
});
chrome.storage.sync.set({tuesday: 0}, function() {
console.log('monday is set to ' + 0);
});
chrome.storage.sync.set({wednesday: 0}, function() {
console.log('monday is set to ' + 0);
});
chrome.storage.sync.set({thursday: 0}, function() {
console.log('monday is set to ' + 0);
});
chrome.storage.sync.set({friday: 0}, function() {
console.log('monday is set to ' + 0);
});
chrome.storage.sync.set({saturday: 0}, function() {
console.log('monday is set to ' + 0);
});
chrome.storage.sync.set({total_co2: 0}, function() {
console.log('monday is set to ' + 0);
});
});