1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Added thermostat name to the document title

This commit is contained in:
Jon Ziebell 2021-02-02 22:14:29 -05:00
parent 8be843de75
commit a16edcf1dc

View File

@ -158,6 +158,13 @@ beestat.layer.load.prototype.decorate_ = function(parent) {
thermostat.ecobee_thermostat_id
];
// Set the document title to include the thermostat name
if (thermostat.name !== null && thermostat.name.trim() !== '') {
document.title = 'beestat | ' + thermostat.name;
} else {
document.title = 'beestat';
}
// Set the active temperature unit.
beestat.setting('temperature_unit', thermostat.temperature_unit);