Stop hiding chat button

This commit is contained in:
Luke Vella 2022-04-27 17:16:31 +01:00
parent a91013ab16
commit afb9a1ed7a

View file

@ -42,14 +42,6 @@ const CrispChat: React.VoidFunctionComponent = () => {
s.async = true;
d.getElementsByTagName("body")[0].appendChild(s);
window.$crisp.push(["safe", true]); // disable warning about other event listeners
window.$crisp.push(["do", "chat:hide"]);
window.$crisp.push([
"on",
"chat:closed",
() => {
window.$crisp?.push(["do", "chat:hide"]);
},
]);
})();
});