From 014b36dce0e34cb257d4b63db912b37411b35e36 Mon Sep 17 00:00:00 2001 From: NoobishSVK Date: Mon, 5 Feb 2024 21:43:41 +0100 Subject: [PATCH] optional chaining fix + mpatile remote fix --- datahandler.js | 2 +- web/js/setup.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/datahandler.js b/datahandler.js index 0ee9019..aceab51 100644 --- a/datahandler.js +++ b/datahandler.js @@ -342,7 +342,7 @@ function handleData(ws, receivedData) { // Get the received TX info const currentTx = fetchTx(dataToSend.freq, dataToSend.pi, dataToSend.ps); - if(currentTx?.station !== undefined) { + if(currentTx && currentTx.station !== undefined) { dataToSend.txInfo = { station: currentTx.station, pol: currentTx.pol, diff --git a/web/js/setup.js b/web/js/setup.js index 83a9651..7b71e25 100644 --- a/web/js/setup.js +++ b/web/js/setup.js @@ -1,7 +1,7 @@ var map; var pin; -var tilesURL='https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/{z}/{x}/{y}.png'; -var mapAttrib='© OpenStreetMap, Tiles by Stadiamaps'; +var tilesURL=' https://tile.openstreetmap.org/{z}/{x}/{y}.png'; +var mapAttrib='© OpenStreetMap'; // add map container