From e9efe4f4110e724c9378be0bb3cb266ffa2ccc5a Mon Sep 17 00:00:00 2001 From: christian Date: Tue, 25 May 2021 10:20:44 -0400 Subject: [PATCH] Jon's changes and one more undefined caught --- package.nw/lib/roster.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.nw/lib/roster.js b/package.nw/lib/roster.js index ac769996..1476c903 100644 --- a/package.nw/lib/roster.js +++ b/package.nw/lib/roster.js @@ -1334,7 +1334,7 @@ function viewRoster() else { callObj.hunting.cqz = "worked"; - cqzConf = `${unconf}${qrz}${inversionAlpha};`; + cqzConf = `${unconf}${cqz}${inversionAlpha};`; } } else @@ -2216,7 +2216,7 @@ function realtimeRoster() var timeCols = document.getElementsByClassName("timeCol"); for (var x in timeCols) { - if (typeof timeCols[x].id != "undefined") + if ((typeof timeCols[x].id != "undefined") && (typeof callRoster[timeCols[x].id.substr(2)] != "undefined")) { var when = now - callRoster[timeCols[x].id.substr(2)].callObj.age; timeCols[x].innerHTML = when.toDHMS(); @@ -2225,7 +2225,7 @@ function realtimeRoster() var lifeCols = document.getElementsByClassName("lifeCol"); for (var x in lifeCols) { - if (typeof lifeCols[x].id != "undefined") + if ((typeof lifeCols[x].id != "undefined") && (typeof callRoster[lifeCols[x].id.substr(2)] != "undefined")) { var when = now - callRoster[lifeCols[x].id.substr(2)].callObj.life; lifeCols[x].innerHTML = when.toDHMS(); @@ -2236,7 +2236,7 @@ function realtimeRoster() var spotCols = document.getElementsByClassName("spotCol"); for (var x in spotCols) { - if (typeof spotCols[x].id != "undefined") + if ((typeof spotCols[x].id != "undefined") && (typeof callRoster[spotCols[x].id.substr(2)] != "undefined")) { spotCols[x].innerHTML = getSpotString( callRoster[spotCols[x].id.substr(2)].callObj