Skip to content

Commit 11047d9

Browse files
Fix eslint
1 parent b816840 commit 11047d9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

web/skins/classic/views/js/monitor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ function ControlList_onClick() {
840840

841841
function ObjectDetection_onChange(od_select) {
842842
const od = od_select.value;
843-
if (od == 'none') {
843+
if (od == 'none') {
844844
// Hide other options
845845
$j('#ObjectDetectionModel').hide();
846846
$j('#ObjectDetectionObjectThreshold').hide();
@@ -857,7 +857,7 @@ function ObjectDetection_onChange(od_select) {
857857

858858
od_model_select.innerHTML = '';
859859
for (const [key, value] of Object.entries(od_models[od])) {
860-
let opt = document.createElement('option');
860+
const opt = document.createElement('option');
861861
opt.value = key; // the index
862862
opt.innerHTML = value;
863863
od_model_select.append(opt);

web/skins/classic/views/js/watch.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,9 @@ function monitorsSetScale(id=null) {
13581358
var currentMonitor = monitorStream;
13591359
} else if (typeof monitors !== 'undefined') {
13601360
//used on Montage, Watch & Event page.
1361-
var currentMonitor = monitors.find((o) => { return parseInt(o["id"]) === id; });
1361+
var currentMonitor = monitors.find((o) => {
1362+
return parseInt(o["id"]) === id;
1363+
});
13621364
} else {
13631365
//Stream is missing
13641366
return;

0 commit comments

Comments
 (0)