diff --git a/popup.js b/popup.js index cb6906e..a99bf11 100644 --- a/popup.js +++ b/popup.js @@ -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;