We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ac4202 commit adb9ba6Copy full SHA for adb9ba6
popup.js
@@ -13,10 +13,18 @@ chrome.storage.sync.get('stat', function(res){
13
tr.appendChild(td2)
14
document.getElementById('stats').appendChild(tr)
15
}
16
+
17
});
18
chrome.browserAction.setPopup({
19
popup: ''
20
})
21
document.getElementById('donate').onclick = function(){
22
chrome.tabs.create({url:chrome.extension.getURL("donate.html")},function(){})
23
24
+document.getElementById('notification').addEventListener("change", function() {
25
+ console.log(this.checked);
26
+ chrome.storage.sync.set({'notification': this.checked});
27
+})
28
+chrome.storage.sync.get('notification', function(res){
29
+ document.getElementById('notification').checked = res.notification;
30
+});
0 commit comments