1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

optional chaining fix + mpatile remote fix

This commit is contained in:
NoobishSVK
2024-02-05 21:43:41 +01:00
parent cb666dab8d
commit 014b36dce0
2 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -1,7 +1,7 @@
var map;
var pin;
var tilesURL='https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/{z}/{x}/{y}.png';
var mapAttrib='&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, Tiles by <a href="http://stadiamaps.com/" target="_blank">Stadiamaps</a>';
var tilesURL=' https://tile.openstreetmap.org/{z}/{x}/{y}.png';
var mapAttrib='&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>';
// add map container