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 TwitchGames struct {
|
|||
}
|
||||
|
||||
func (widget *TwitchGames) Initialize() error {
|
||||
widget.withTitle("Top games on Twitch").withCacheDuration(time.Minute * 10)
|
||||
widget.
|
||||
withTitle("Top games on Twitch").
|
||||
withTitleURL("https://www.twitch.tv/directory?sort=VIEWER_COUNT").
|
||||
withCacheDuration(time.Minute * 10)
|
||||
|
||||
if widget.Limit <= 0 {
|
||||
widget.Limit = 10
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue