mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
removed degree symbol display for Kelvin scale, match source code in currentweather and weatherforecast
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user