mirror of
https://github.com/beestat/app.git
synced 2025-06-23 15:30:43 -04:00
Added thermostat name to the document title
This commit is contained in:
parent
8be843de75
commit
a16edcf1dc
@ -158,6 +158,13 @@ beestat.layer.load.prototype.decorate_ = function(parent) {
|
|||||||
thermostat.ecobee_thermostat_id
|
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.
|
// Set the active temperature unit.
|
||||||
beestat.setting('temperature_unit', thermostat.temperature_unit);
|
beestat.setting('temperature_unit', thermostat.temperature_unit);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user