Allow setting widget title URL
This commit is contained in:
parent
4dbb5975c0
commit
514cf2b81c
8 changed files with 36 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue