Put aircraft count before page title

This commit is contained in:
eric1tran 2020-08-09 00:33:59 -05:00
parent d353568c59
commit da3557fcfe
1 changed files with 5 additions and 8 deletions

View File

@ -1040,21 +1040,18 @@ function refreshPageTitle() {
return;
}
var subtitle = "";
var aircraftCount = "";
var rate = "";
if (PlaneCountInTitle) {
subtitle += 'Tracking ' + TrackedAircraft + ' Aircraft';
aircraftCount += TrackedAircraft;
}
if (MessageRateInTitle && MessageRate) {
if (subtitle) {
subtitle += ' | ';
}
subtitle += MessageRate.toFixed(1) + ' msg/sec';
rate += ' - ' + MessageRate.toFixed(1) + ' msg/sec';
}
document.title = PageName + ' - ' + subtitle;
document.title = '(' + aircraftCount + ') ' + PageName + rate;
}
// Refresh the detail window about the plane