Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update title and image from a script #418

Merged
merged 1 commit into from
Sep 16, 2021
Merged

Conversation

ash14
Copy link
Contributor

@ash14 ash14 commented Sep 16, 2021

  • If a script returns a valid JSON string, its title and image values are used to update (or unset) the button's title and image respectively.
  • If the returned string cannot be parsed as a JSON object its used as the title string, keeping compatibility with existing scripts.

This resolves issues like #268

README needs updating and needs some tests but would appreciate some review / feedback before continuing.

Thanks!

@Toxblh Toxblh merged commit 352bf48 into Toxblh:master Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants