Apply suggestions from code review

This commit is contained in:
Christopher Fenner
2022-01-06 21:28:25 +01:00
committed by GitHub
parent 793f3dd75c
commit 1619dd29e9
3 changed files with 4 additions and 4 deletions

View File

@@ -135,7 +135,7 @@ Module.register("currentweather", {
var windDirection = document.createElement("sup");
if (this.config.showWindDirectionAsArrow) {
if (this.windDeg !== null) {
windDirection.innerHTML = ' &nbsp;<i class="fas fa-long-arrow-down" style="transform:rotate(' + this.windDeg + 'deg);"></i>&nbsp;';
windDirection.innerHTML = ' &nbsp;<i class="fas fa-long-arrow-alt-down" style="transform:rotate(' + this.windDeg + 'deg);"></i>&nbsp;';
}
} else {
windDirection.innerHTML = " " + this.translate(this.windDirection);