Update current weather header only if not undefined

This commit is contained in:
Chris van Marle 2019-03-29 13:15:58 +01:00
parent 979041ee91
commit 416ace4c86

View File

@ -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;
}