Fix eslint

pull/3195/merge
Isaac Connor 2024-10-15 18:16:55 -04:00
parent c2fe3ce1e8
commit 123c261e75
1 changed files with 3 additions and 2 deletions

View File

@ -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 {