diff --git a/package.nw/lib/gt.js b/package.nw/lib/gt.js index 459001d..fad8c73 100644 --- a/package.nw/lib/gt.js +++ b/package.nw/lib/gt.js @@ -7334,10 +7334,9 @@ function handleWsjtxDecode(newMessage) if (locality == null) { // Check the prefix for dxcc direct - var dxcc = callsignToDxcc(CCd); - if (dxcc != -1) + if (CCd in g_prefixToMap) { - locality = g_worldGeoData[g_dxccToGeoData[dxcc]].geo; + locality = g_worldGeoData[g_prefixToMap[CCd]].geo; if (locality == "deleted") locality = null; } } @@ -7412,7 +7411,7 @@ function handleWsjtxDecode(newMessage) "