Skip to content

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Oct 15, 2024
1 parent c2fe3ce commit 123c261
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/skins/classic/views/js/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 123c261

Please sign in to comment.