Skip to content

Commit 6be0191

Browse files
committed
Update icons
1 parent 621151c commit 6be0191

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

assets/js/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ function getDetailedFeelingColor(temp, humidity) {
9090

9191
function getDetailedFeelingImage(temp, humidity) {
9292
const result = weatherFeelings.find((f) => f.condition(temp, humidity));
93-
return result ? result.svgIcon : "";
93+
return result
94+
? `<img src="${result.iconUrl}.svg" alt="${result.text ?? ""}" />`
95+
: "";
9496
}
9597

9698
/* DATE TIME UTILS */

0 commit comments

Comments
 (0)