widget.weather: fix check in notification #479

This commit is contained in:
Luca Capezzuto 2020-12-16 11:40:26 +01:00
parent 3236575b52
commit 80e41c1e7b
No known key found for this signature in database
GPG Key ID: 4E53F7C0EC846979
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ local function factory(args)
preset = notification_preset,
text = weather.notification_text,
icon = weather.icon_path,
timeout = type(seconds == "number") and seconds or notification_preset.timeout
timeout = type(seconds) == "number" and seconds or notification_preset.timeout
}
end

2
wiki

@ -1 +1 @@
Subproject commit 877b34bf5624caee917c0d81bc553b60dbdeabe2
Subproject commit ddc6aa0649d4fd091c1a73784d0507feb86eaf5f