yahoo_weather
Neroth 11 years ago
parent 51caa6d464
commit 41fa3d64c4
  1. 4
      src/extension.js

@ -176,7 +176,7 @@ const WEATHER_DEBUG_EXTENSION = 'debug-extension'; // Weather extension settin
this.refreshUI(); this.refreshUI();
if(this.info) if(this.location)
this.info.update(); this.status("Weather started"); this.status(0); this.info.update(); this.status("Weather started"); this.status(0);
return 0; return 0;
}, },
@ -1140,7 +1140,7 @@ const WEATHER_DEBUG_EXTENSION = 'debug-extension'; // Weather extension settin
|| this.variation("comment_in_panel",true) || this.variation("wind_direction",true)) || this.variation("comment_in_panel",true) || this.variation("wind_direction",true))
this.refresh(); this.refresh();
if(this.variation("city",true)) if(typeof this.location == "undefined" || (typeof this.location != "undefined" && !this.location.equal(this.city)))
{ this.status("Location has changed"); { this.status("Location has changed");
this.restart(); this.status("Location changed to "+this.location.get_city_name()); this.restart(); this.status("Location changed to "+this.location.get_city_name());
return 0; return 0;

Loading…
Cancel
Save