mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Append slash to endpoint. (Fix issue #337)
This commit is contained in:
@@ -164,7 +164,7 @@ Module.register("currentweather",{
|
||||
* Calls processWeather on succesfull response.
|
||||
*/
|
||||
updateWeather: function() {
|
||||
var url = this.config.apiBase + this.config.apiVersion + "/" + this.config.weatherEndpoint + this.getParams();
|
||||
var url = this.config.apiBase + this.config.apiVersion + "/" + this.config.weatherEndpoint + '/' + this.getParams();
|
||||
var self = this;
|
||||
var retry = true;
|
||||
|
||||
@@ -201,7 +201,7 @@ Module.register("currentweather",{
|
||||
var params = "?";
|
||||
if(this.config.locationID !== "") {
|
||||
params += "id=" + this.config.locationID;
|
||||
} else {
|
||||
} else {
|
||||
params += "q=" + this.config.location;
|
||||
}
|
||||
params += "&units=" + this.config.units;
|
||||
|
Reference in New Issue
Block a user