mirror of
https://github.com/Roslund/meshtastic-map.git
synced 2026-03-28 17:43:03 +01:00
only show waypoint description if provided
This commit is contained in:
@@ -1553,7 +1553,7 @@
|
||||
function getTooltipContentForWaypoint(waypoint) {
|
||||
|
||||
var tooltip = `<b>${waypoint.name}</b>` +
|
||||
`<br/>${waypoint.description}` +
|
||||
(waypoint.description ? `<br/>${waypoint.description}` : '') +
|
||||
`<br/><br/>Expires: ${moment(new Date(waypoint.expire * 1000)).fromNow()}` +
|
||||
`<br/>Lat/Lng: ${waypoint.latitude}, ${waypoint.longitude}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user