Skip to content

Commit

Permalink
Merge pull request #1143 from lukaw3d/patch-2
Browse files Browse the repository at this point in the history
Fix turning off torch remotely from director view
  • Loading branch information
steveseguin authored Oct 20, 2024
2 parents 4777522 + 52351d9 commit 24aea29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -32238,7 +32238,7 @@ function updateDirectorsAudio(dataN, UUID) {
}
}
}
} else if (i.toLowerCase == "torch") {
} else if (i.toLowerCase() == "torch") {
var opt = new Option("Off", false);
input.options.add(opt);
opt = new Option("On", true);
Expand Down Expand Up @@ -32680,7 +32680,7 @@ function updateDirectorsVideo(data, UUID) {
}
}
}
} else if (i.toLowerCase == "torch") {
} else if (i.toLowerCase() == "torch") {
var opt = new Option("Off", false);
input.options.add(opt);
opt = new Option("On", true);
Expand Down Expand Up @@ -33480,7 +33480,7 @@ function listAudioSettings() {
}
}
}
} else if (i.toLowerCase == "torch") {
} else if (i.toLowerCase() == "torch") {
var opt = new Option("Off", false);
input.options.add(opt);
opt = new Option("On", true);
Expand Down Expand Up @@ -34146,7 +34146,7 @@ function listCameraSettings() {
opt.selected = "true";
}
}
} else if (i.toLowerCase == "torch") {
} else if (i.toLowerCase() == "torch") {
warnlog("TORCH");
var opt = new Option("Off", false);
input.options.add(opt);
Expand Down

0 comments on commit 24aea29

Please sign in to comment.