Skip to content

Commit

Permalink
Removing leading + from coordinates.
Browse files Browse the repository at this point in the history
  • Loading branch information
fkurmannucsc committed Jul 2, 2024
1 parent 984fbd6 commit 83b23be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,14 @@ function initVideo(info) {
let video_location = metadata.location ?? {};
let latitude = video_location.latitude ?? undefined;
let longitude = video_location.longitude ?? undefined;

// Remove leading "+"
if (latitude != undefined) {
latitude = latitude.replace('+', '');
}
if (longitude != undefined) {
longitude = longitude.replace('+', '');
}

window.shark.info['video'] = {
id: info.video_id,
Expand Down

0 comments on commit 83b23be

Please sign in to comment.