diff --git a/web/skins/classic/views/js/event.js b/web/skins/classic/views/js/event.js index fb2809fd99..01b9f76782 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 {