Skip to content

Commit d353568

Browse files
Assaf Sapireric1tran
andauthored
Fix MessageRate might be null and remove unused config (MalcolmRobb#71)
* Fix MessageRate might be null && unused config * Page title edits Co-authored-by: Eric Tran <[email protected]>
1 parent a0b0038 commit d353568

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

public_html/config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ OutlineMlatColor = '#4040FF';
9696

9797
SiteCircles = true; // true to show circles (only shown if the center marker is shown)
9898
// In miles, nautical miles, or km (depending settings value 'DisplayUnits')
99-
SiteCirclesDistances = new Array(100,150,200);
10099
DefaultSiteCirclesCount = 3;
101100
DefaultSiteCirclesBaseDistance = 100;
102101
DefaultSiteCirclesInterval = 50;

public_html/script.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,12 +1043,15 @@ function refreshPageTitle() {
10431043
var subtitle = "";
10441044

10451045
if (PlaneCountInTitle) {
1046-
subtitle += TrackedAircraftPositions + '/' + TrackedAircraft;
1046+
subtitle += 'Tracking ' + TrackedAircraft + ' Aircraft';
10471047
}
10481048

1049-
if (MessageRateInTitle) {
1050-
if (subtitle) subtitle += ' | ';
1051-
subtitle += MessageRate.toFixed(1) + '/s';
1049+
if (MessageRateInTitle && MessageRate) {
1050+
if (subtitle) {
1051+
subtitle += ' | ';
1052+
}
1053+
1054+
subtitle += MessageRate.toFixed(1) + ' msg/sec';
10521055
}
10531056

10541057
document.title = PageName + ' - ' + subtitle;

0 commit comments

Comments
 (0)