From d353568c5955c970d1ce09721936bde6c7815248 Mon Sep 17 00:00:00 2001 From: Assaf Sapir Date: Sun, 9 Aug 2020 02:26:57 +0300 Subject: [PATCH] Fix MessageRate might be null and remove unused config (#71) * Fix MessageRate might be null && unused config * Page title edits Co-authored-by: Eric Tran --- public_html/config.js | 1 - public_html/script.js | 11 +++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/public_html/config.js b/public_html/config.js index da7a75668..86021b777 100644 --- a/public_html/config.js +++ b/public_html/config.js @@ -96,7 +96,6 @@ OutlineMlatColor = '#4040FF'; SiteCircles = true; // true to show circles (only shown if the center marker is shown) // In miles, nautical miles, or km (depending settings value 'DisplayUnits') -SiteCirclesDistances = new Array(100,150,200); DefaultSiteCirclesCount = 3; DefaultSiteCirclesBaseDistance = 100; DefaultSiteCirclesInterval = 50; diff --git a/public_html/script.js b/public_html/script.js index 9bb7936bd..dd1b02af0 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -1043,12 +1043,15 @@ function refreshPageTitle() { var subtitle = ""; if (PlaneCountInTitle) { - subtitle += TrackedAircraftPositions + '/' + TrackedAircraft; + subtitle += 'Tracking ' + TrackedAircraft + ' Aircraft'; } - if (MessageRateInTitle) { - if (subtitle) subtitle += ' | '; - subtitle += MessageRate.toFixed(1) + '/s'; + if (MessageRateInTitle && MessageRate) { + if (subtitle) { + subtitle += ' | '; + } + + subtitle += MessageRate.toFixed(1) + ' msg/sec'; } document.title = PageName + ' - ' + subtitle;