⚡ Improved the comments plug-in load function, close #12
This commit is contained in:
10
static/js/third-party/chat/tidio.js
vendored
Normal file
10
static/js/third-party/chat/tidio.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/* global tidioChatApi */
|
||||
|
||||
(function() {
|
||||
const chatButton = document.querySelector('.sidebar-button button');
|
||||
if (chatButton) {
|
||||
chatButton.addEventListener('click', () => {
|
||||
tidioChatApi.open();
|
||||
});
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user