emile 10 months ago
parent 94ebfb9831
commit 82abcc7f8e

@ -36,7 +36,6 @@ function initializeOsichat(){
osichatroomsSocket.onopen = function () {
console.log('WebSocket connection to rooms established');
hideLoader();
osichatroomsSocket.send(JSON.stringify({
'event_type': 'set_client_type',
'client_type': 'website_admin',
@ -51,11 +50,13 @@ function initializeOsichat(){
const leftDynamicDiv = document.getElementById('leftDynamic');
switch (data.event_type) {
case 'get_chats':
hideLoader();
leftDynamicDiv.innerHTML = data.html;
appendInnerConversationScript(leftDiv);
break;
case 'get_visitors':
hideLoader();
leftDynamicDiv.innerHTML = data.html;
setupDurationUpdater();
break;

Loading…
Cancel
Save