hexo-blog-deploy/js/third-party/chat/tidio.js

11 lines
226 B
JavaScript

/* global tidioChatApi */
(function() {
const chatButton = document.querySelector('.sidebar-button button');
if (chatButton) {
chatButton.addEventListener('click', () => {
tidioChatApi.open();
});
}
})();