mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Update current weather header only if not undefined
This commit is contained in:
parent
979041ee91
commit
416ace4c86
@ -265,7 +265,7 @@ Module.register("currentweather",{
|
||||
|
||||
// Override getHeader method.
|
||||
getHeader: function() {
|
||||
if (this.config.appendLocationNameToHeader) {
|
||||
if (this.config.appendLocationNameToHeader && this.data.header !== undefined) {
|
||||
return this.data.header + " " + this.fetchedLocationName;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user