mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
fix documentation currentweather and weatherforecast function
roundValue: This function toFixed return a string type not a number value.
This commit is contained in:
@@ -356,7 +356,7 @@ Module.register("weatherforecast",{
|
||||
*
|
||||
* argument temperature number - Temperature.
|
||||
*
|
||||
* return number - Rounded Temperature.
|
||||
* return string - Rounded Temperature.
|
||||
*/
|
||||
roundValue: function(temperature) {
|
||||
var decimals = this.config.roundTemp ? 0 : 1;
|
||||
|
Reference in New Issue
Block a user