current.njk JS error and Loading string

This commit is contained in:
vincep5
2019-01-17 08:54:16 -06:00
parent 29384c2ba3
commit 2e03868021
4 changed files with 7 additions and 6 deletions

View File

@@ -62,7 +62,7 @@ Module.register("weather",{
return ["font-awesome.css", "weather-icons.css", "weather.css"];
},
// Return the scripts that are nessecery for the weather module.
// Return the scripts that are necessary for the weather module.
getScripts: function () {
return [
"moment.js",
@@ -218,7 +218,7 @@ Module.register("weather",{
}.bind(this));
this.nunjucksEnvironment().addFilter("decimalSymbol", function(value) {
return value.replace(/\./g, this.config.decimalSymbol);
return value.toString().replace(/\./g, this.config.decimalSymbol);
}.bind(this));
this.nunjucksEnvironment().addFilter("calcNumSteps", function(forecast) {