Allow setting widget title URL

This commit is contained in:
Svilen Markov
2024-06-29 16:10:43 +01:00
parent 4dbb5975c0
commit 514cf2b81c
8 changed files with 36 additions and 5 deletions

View File

@@ -18,7 +18,10 @@ type TwitchChannels struct {
}
func (widget *TwitchChannels) Initialize() error {
widget.withTitle("Twitch Channels").withCacheDuration(time.Minute * 10)
widget.
withTitle("Twitch Channels").
withTitleURL("https://www.twitch.tv/directory/following").
withCacheDuration(time.Minute * 10)
if widget.CollapseAfter == 0 || widget.CollapseAfter < -1 {
widget.CollapseAfter = 5