From 123c261e754e1e5a6a8a332c0b6baba9fc22481f Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 15 Oct 2024 18:16:55 -0400 Subject: [PATCH] Fix eslint --- web/skins/classic/views/js/event.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/views/js/event.js b/web/skins/classic/views/js/event.js index fb2809fd9..01b9f7678 100644 --- a/web/skins/classic/views/js/event.js +++ b/web/skins/classic/views/js/event.js @@ -318,7 +318,8 @@ function changeScale() { currentScale = newSize.autoScale; } else if (scaleSel.indexOf("px") > -1) { newSize = scaleToFit(eventData.Width, eventData.Height, eventViewer, false, $j('#wrapperEventVideo')); // Only for calculating the maximum width! - let w, h = w = ''; + let w = 0; + let h = 0; if (landscape) { w = Math.min(stringToNumber(scaleSel), newSize.width); h = w / (eventData.Width / eventData.Height); @@ -1687,7 +1688,7 @@ function initPage() { zoomOffset: -1, accessToken: ZM_OPT_GEOLOCATION_ACCESS_TOKEN, }).addTo(map); - marker = L.marker([eventData.Latitude, eventData.Longitude], {draggable: 'false'}); + const marker = L.marker([eventData.Latitude, eventData.Longitude], {draggable: 'false'}); marker.addTo(map); map.invalidateSize(); } else {