1
0
Fork 0

Update app.js

Extra space to fix wind speed layout
master
lunctis-viribus 2021-12-07 20:37:50 +01:00 committed by GitHub
parent e0136ca4b7
commit 2cb77e8f89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ function draw() {
clockLayout.tempUnit.label = temp[2];
clockLayout.weatherIcon.src = chooseIcon(currentWeather.txt);
const wind = locale.speed(currentWeather.wind).match(/^(\D*\d*)(.*)$/);
clockLayout.wind.label = wind[1] + " ";
clockLayout.wind.label = wind[1] + " ";
clockLayout.windUnit.label = wind[2] + " " + (currentWeather.wrose||'').toUpperCase();
}
else{