Also, if anybody else has anything to add and/or share, please feel free to join in the conversation 🙂
Thanks a lot and have a brilliant day!
Best, Bérangère
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
window.addEventListener('message', e => {
if (!e.data || 'string' !== typeof e.data) {
return
}
var data = JSON.parse(e.data)
if (!data.type || 'open-change' !== data.type) {
return
}
if (data.data.isOpen) {
// whatever you wanna do when opening
} else {
// whatever you wanna do when closing
}
})
Also, if anybody else has anything to add and/or share, please feel free to join in the conversation 🙂
Thanks a lot and have a brilliant day!
Best, Bérangère
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.