diff --git a/options.js b/options.js index d7d0b21..f45f497 100644 --- a/options.js +++ b/options.js @@ -18,6 +18,10 @@ function setupOptionsView(optionsDiv){ var children = Array.prototype.slice.call(optionsDiv.querySelectorAll('input.option')); children.forEach(function(child){ child.checked = options[child.id]; + child.addEventListener('change', function(event){ + options[event.target.id] = event.target.checked; + saveOptions(); + }); }); }