Put aircraft count before page title
This commit is contained in:
parent
d353568c59
commit
da3557fcfe
|
|
@ -1040,21 +1040,18 @@ function refreshPageTitle() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var subtitle = "";
|
var aircraftCount = "";
|
||||||
|
var rate = "";
|
||||||
|
|
||||||
if (PlaneCountInTitle) {
|
if (PlaneCountInTitle) {
|
||||||
subtitle += 'Tracking ' + TrackedAircraft + ' Aircraft';
|
aircraftCount += TrackedAircraft;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MessageRateInTitle && MessageRate) {
|
if (MessageRateInTitle && MessageRate) {
|
||||||
if (subtitle) {
|
rate += ' - ' + MessageRate.toFixed(1) + ' msg/sec';
|
||||||
subtitle += ' | ';
|
|
||||||
}
|
|
||||||
|
|
||||||
subtitle += MessageRate.toFixed(1) + ' msg/sec';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
document.title = PageName + ' - ' + subtitle;
|
document.title = '(' + aircraftCount + ') ' + PageName + rate;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Refresh the detail window about the plane
|
// Refresh the detail window about the plane
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue