Skip to content

Commit

Permalink
boolean options not saved correctly in connection file
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 10, 2024
1 parent 71d8ad3 commit e8f32e8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion html5/connect.html
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,13 @@ <h4 class="panel-title">Advanced options</h4>
for (let i = 0; i < FILE_PROPERTIES.length; i++) {
const prop = FILE_PROPERTIES[i];
const prop_name = FILE_TRANSLATION[prop] || prop;
const value = document.getElementById(prop).value;
let value = "";
if (BOOLEAN_PROPERTIES.includes(prop)) {
value = document.getElementById(prop).checked;
}
else {
value = document.getElementById(prop).value;
}
if (value !== "") {
data += prop_name + "=" + value + "\n";
}
Expand Down

0 comments on commit e8f32e8

Please sign in to comment.