From 41fa3d64c4c432b0480cc9f5b8dba5d5450095b4 Mon Sep 17 00:00:00 2001 From: Neroth Date: Mon, 22 Jul 2013 06:34:04 +0200 Subject: [PATCH] Fix bug --- src/extension.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension.js b/src/extension.js index e66c74b..cdebfe0 100644 --- a/src/extension.js +++ b/src/extension.js @@ -176,7 +176,7 @@ const WEATHER_DEBUG_EXTENSION = 'debug-extension'; // Weather extension settin this.refreshUI(); - if(this.info) + if(this.location) this.info.update(); this.status("Weather started"); this.status(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.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.restart(); this.status("Location changed to "+this.location.get_city_name()); return 0;