fix weather tests and add CHANGELOG

This commit is contained in:
Karsten Hassel
2022-01-26 00:22:32 +01:00
parent c622db918b
commit 59bc2318f8
2 changed files with 9 additions and 4 deletions

View File

@@ -112,11 +112,15 @@ const WeatherProvider = Class.extend({
},
getCorsUrl: function () {
const url = window.config.address + ":" + window.config.port + "/cors?url=";
if (window.config.useHttps) {
return "https://" + url;
if (this.config.mockData) {
return "";
} else {
return "http://" + url;
const url = window.config.address + ":" + window.config.port + "/cors?url=";
if (window.config.useHttps) {
return "https://" + url;
} else {
return "http://" + url;
}
}
},