Skip to content

Commit

Permalink
Fix accessing undefined input area rects.
Browse files Browse the repository at this point in the history
  • Loading branch information
H-M-H committed Oct 16, 2024
1 parent 4768349 commit facec28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ class Settings {
document.getElementById("refresh").onclick = () => this.webSocket.send('"GetCapturableList"');
document.getElementById("custom_input_areas").onclick = () => {
this.webSocket.send('"ChooseCustomInputAreas"');
this.checks.get("enable_custom_input_areas").checked = true;
};
this.capturable_select.onchange = () => this.send_server_config();
}
Expand Down Expand Up @@ -883,6 +882,7 @@ function handle_messages(
onConfigError(msg["ConfigError"]);
} else if ("CustomInputAreas" in msg) {
settings.custom_input_areas = msg["CustomInputAreas"];
settings.checks.get("enable_custom_input_areas").checked = true;
settings.save_settings();
}
}
Expand Down

0 comments on commit facec28

Please sign in to comment.