Skip to content

Commit

Permalink
Fix default value of the checkbox in plugin-specific settings (#8031)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen authored Jun 10, 2023
1 parent 9874a50 commit 6354494
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/client/browser-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ function init (client, serverSettings, $) {
if (p.type == 'boolean') {
const html = $(`<dd><input type="checkbox" id="${id}" value="true" /><label for="${id}r">` + translate(label) + `</label></dd>`);
dl.append(html);
if (storage.get(id) == true) {
const settingsBase = settings.extendedSettings[e.plugin.name];
if (settingsBase[p.id] == true) {
toggleCheckboxes.push(id);
}
}
Expand Down

0 comments on commit 6354494

Please sign in to comment.