I created a custom LiveChat button. And I used the LiveChat API to open up the chat window from that button. I have a
tag inside the button that has some text that I would like to update based on if LiveChat is on or not. I have been working it out for my client from maheenandco for quite a while now.
I’m trying to check the data.state to see what it’s set to and then update the text accordingly.