From 1e6088ca1d6321f98548a96157fec90b53aaa863 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Tue, 3 Dec 2019 19:06:00 +0100 Subject: [PATCH] relative map urls --- htdocs/openwebrx.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index 25c094c..0f5e97a 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -1239,7 +1239,7 @@ function update_metadata(meta) { mode = "Mode: " + meta['mode']; source = meta['source'] || ""; if (meta['lat'] && meta['lon'] && meta['source']) { - source = "" + source; + source = "" + source; } up = meta['up'] ? "Up: " + meta['up'] : ""; down = meta['down'] ? "Down: " + meta['down'] : ""; @@ -1274,14 +1274,14 @@ function update_wsjt_panel(msg) { if (['FT8', 'JT65', 'JT9', 'FT4'].indexOf(msg['mode']) >= 0) { matches = linkedmsg.match(/(.*\s[A-Z0-9]+\s)([A-R]{2}[0-9]{2})$/); if (matches && matches[2] !== 'RR73') { - linkedmsg = html_escape(matches[1]) + '' + matches[2] + ''; + linkedmsg = html_escape(matches[1]) + '' + matches[2] + ''; } else { linkedmsg = html_escape(linkedmsg); } } else if (msg['mode'] === 'WSPR') { matches = linkedmsg.match(/([A-Z0-9]*\s)([A-R]{2}[0-9]{2})(\s[0-9]+)/); if (matches) { - linkedmsg = html_escape(matches[1]) + '' + matches[2] + '' + html_escape(matches[3]); + linkedmsg = html_escape(matches[1]) + '' + matches[2] + '' + html_escape(matches[3]); } else { linkedmsg = html_escape(linkedmsg); } @@ -1367,7 +1367,7 @@ function update_packet_panel(msg) { 'style="' + stylesToString(styles) + '"' ].join(' '); if (msg.lat && msg.lon) { - link = '' + overlay + ''; + link = '' + overlay + ''; } else { link = '
' + overlay + '
' }