mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 16:59:15 +02:00
optional chaining fix + mpatile remote fix
This commit is contained in:
+1
-1
@@ -342,7 +342,7 @@ function handleData(ws, receivedData) {
|
|||||||
|
|
||||||
// Get the received TX info
|
// Get the received TX info
|
||||||
const currentTx = fetchTx(dataToSend.freq, dataToSend.pi, dataToSend.ps);
|
const currentTx = fetchTx(dataToSend.freq, dataToSend.pi, dataToSend.ps);
|
||||||
if(currentTx?.station !== undefined) {
|
if(currentTx && currentTx.station !== undefined) {
|
||||||
dataToSend.txInfo = {
|
dataToSend.txInfo = {
|
||||||
station: currentTx.station,
|
station: currentTx.station,
|
||||||
pol: currentTx.pol,
|
pol: currentTx.pol,
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
var map;
|
var map;
|
||||||
var pin;
|
var pin;
|
||||||
var tilesURL='https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/{z}/{x}/{y}.png';
|
var tilesURL=' https://tile.openstreetmap.org/{z}/{x}/{y}.png';
|
||||||
var mapAttrib='© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, Tiles by <a href="http://stadiamaps.com/" target="_blank">Stadiamaps</a>';
|
var mapAttrib='© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>';
|
||||||
|
|
||||||
// add map container
|
// add map container
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user