Skip to content

Commit

Permalink
Set erase_chip as default option when not set before
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Dec 29, 2023
1 parent 6577697 commit 4659b30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/tabs/firmware_flasher.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,10 +575,10 @@ firmware_flasher.initialize = function (callback) {
}

let result = getConfig('erase_chip');
if (result.erase_chip) {
if (result.erase_chip === undefined) {
$('input.erase_chip').prop('checked', true);
} else {
$('input.erase_chip').prop('checked', false);
$('input.erase_chip').prop('checked', result.erase_chip);
}

$('input.erase_chip').change(function () {
Expand Down

0 comments on commit 4659b30

Please sign in to comment.