Skip to content

Commit

Permalink
Update popup.js
Browse files Browse the repository at this point in the history
  • Loading branch information
inventionpro authored Oct 24, 2024
1 parent d23dc0e commit 8fc542a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ function set(name) {
}

document.addEventListener('DOMContentLoaded', function () {
['enabled','down','noads','novideoads','norick','nocurves','noshorts','nothanks','nomix'].forEach(e => {
['enabled','down','noads','novideoads','norick','nocurves','noshorts','nothanks','nomix','nopink'].forEach(e => {
set(e)
})

chrome.storage.onChanged.addListener(function (changes) {
chrome.storage.onChanged.addListener(function (changes, namespace) {
for (let key in changes) {
console.log(key)
document.getElementById(key).checked = changes[key].newValue;
Expand Down

0 comments on commit 8fc542a

Please sign in to comment.