Update weatherforecast.js

This commit is contained in:
Chris 2020-05-31 11:57:53 +09:00 committed by GitHub
parent 4a7076e01c
commit cc01c1f0db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,7 +294,7 @@ Module.register("weatherforecast", {
return;
}
params += "&cnt=" + (this.config.maxNumberOfDays·<·1·||·this.config.maxNumberOfDays·>·17 ? 7 : this.config.maxNumberOfDays);
params += "&cnt=" + (this.config.maxNumberOfDays < 1 || this.config.maxNumberOfDays > 17 ? 7 : this.config.maxNumberOfDays);
params += "&units=" + this.config.units;
params += "&lang=" + this.config.lang;