Skip to content

Commit 99a2666

Browse files
committed
Check country is defined
1 parent 0d1c04d commit 99a2666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

desklet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ MyDesklet.prototype = {
845845
this.displaycity = this._geocache[locsrc][latlon].city;
846846
this.tooltiplocation = this.displaycity
847847
if (this.show.meta.country) {
848-
this.displaycity += ', ' + this._geocache[locsrc][latlon].country;
848+
if (this._geocache[locsrc][latlon].country !== 'undefined') this.displaycity += ', ' + this._geocache[locsrc][latlon].country;
849849
}
850850
this._updateLocationDisplay();
851851
// no cache - lookup

0 commit comments

Comments
 (0)