mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 04:45:17 +00:00
fix weather tests and add CHANGELOG
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user