removed degree symbol display for Kelvin scale, match source code in currentweather and weatherforecast

This commit is contained in:
fwitte
2019-01-03 12:06:52 +01:00
parent b52da7c9fc
commit 3541d5adde
2 changed files with 10 additions and 10 deletions

View File

@@ -142,17 +142,17 @@ Module.register("weatherforecast",{
icon.className = "wi weathericon " + forecast.icon;
iconCell.appendChild(icon);
var degreeLabel = "°";
var degreeLabel = "";
if(this.config.scale) {
switch(this.config.units) {
case "metric":
degreeLabel += " C";
degreeLabel = " °C";
break;
case "imperial":
degreeLabel += " F";
degreeLabel = " °F";
break;
case "default":
degreeLabel = "K";
degreeLabel = " K";
break;
}
}