Add saving options
This commit is contained in:
parent
d30e817c5e
commit
fb6885258f
|
@ -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();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue