How to access DOM object? manipulate a chat widget app, Javascript


Hi I am using the Live Chat Widget of Brevo. Unfortunately they don’t want to give me their source code for private reasons. I want to add/render my FAQ stuff by myself over their widget (when it is opened). That means my javascript file will check if their chat widget is opened (if it is rendered) and then render on top of it my FAQ stuff.

 

So my questions are:

– how do I check if a specific HTML Tag was rendered? in react i am using the DOM object for that (i just check at each render if the html tag of the widget was rendered. and ofc if it was un-rendered/deleted).

– how do i access the DOM object in shopifys environment?

 

https://community.brevo.com/t/can-i-add-kakaotalk-line-somehow-to-my-livechat-an-icon-with-link-is-e… 

 

https://community.brevo.com/t/can-i-add-kakaotalk-line-somehow-to-my-livechat-an-icon-with-link-is-e…



Source link

Leave a Comment