diff --git a/src/extension.js b/src/extension.js index 545cefc..c0da3b9 100644 --- a/src/extension.js +++ b/src/extension.js @@ -242,10 +242,13 @@ const WeatherMenuButton = new Lang.Class({ this.updateCities(); cityId = this.extractId(this._city); } + let url = "http://openweathermap.org"; if (cityId) - Util.spawn(["gnome-open", "http://openweathermap.org/city/" + cityId]); - else - Util.spawn(["gnome-open", "http://openweathermap.org"]); + url += "/city/" + cityId; + if (this._appid) + url += "?APPID=" + this._appid; + + Util.spawn(["gnome-open", url]); })); this.menu.addMenuItem(item);