Skip to content

Commit

Permalink
Fixes JavaScript type errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
zonble committed Mar 3, 2024
1 parent 0649212 commit 7203bf9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion output/chromeos/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ window.onload = () => {
let select = document.getElementById("ctrl_enter_option");
let options = select.getElementsByTagName("option");
for (let option of options) {
if (option.value === settings.ctrl_option) {
if (option.value == settings.ctrl_option) {
option.selected = "selected";
break;
}
Expand Down
2 changes: 1 addition & 1 deletion output/example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function applySettings(settings) {
let select = document.getElementById("ctrl_enter_option");
let options = select.getElementsByTagName("option");
for (let option of options) {
if (option.value === settings.ctrl_option) {
if (option.value == settings.ctrl_option) {
option.selected = "selected";
break;
}
Expand Down
7 changes: 1 addition & 6 deletions output/pime/js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,10 @@ window.onload = () => {

{
document.getElementById("ctrl_enter_option").onchange = function (event) {
console.log("ctrl_enter_option");
let value = document.getElementById("ctrl_enter_option").value;
value = +value;
console.log("value" + value);
controller.setCtrlEnterOption(value);
settings.ctrl_enter_option = value;
saveSettings(settings);
console.log(settings);
document.getElementById("text_area").focus();
};
}

Expand All @@ -86,7 +81,7 @@ window.onload = () => {
let select = document.getElementById("ctrl_enter_option");
let options = select.getElementsByTagName("option");
for (let option of options) {
if (option.value === settings.ctrl_option) {
if (option.value == settings.ctrl_option) {
option.selected = "selected";
break;
}
Expand Down

0 comments on commit 7203bf9

Please sign in to comment.