Skip to content

Commit

Permalink
set settings values correctly - fix #53
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Aug 18, 2023
1 parent 45e2748 commit 8cf4d0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,7 @@ function settingsCheckbox(id, name) {
setting.checked = SETTINGS[name];
}
SETTINGS_HOOKS[name] = update;
update(); // set initial value
setting.addEventListener('click', function() {
SETTINGS[name] = setting.checked;
saveSettings();
Expand Down

0 comments on commit 8cf4d0f

Please sign in to comment.