works ok but now I’m having trouble with pagination.
The chat history is showing but without pagination
My script is the following:
<script id=”chatBroEmbedCode”>
/* Chatbro Widget Embed Code Start */
function ChatbroLoader(chats,async) {async=async!==false;var params={embedChatsParameters:chats instanceof Array?chats:[chats],needLoadCode:typeof Chatbro===’undefined’};var xhr=new XMLHttpRequest();xhr.withCredentials = true;xhr.onload=function(){eval(xhr.responseText)};xhr.onerror=function(){console.error(‘Chatbro loading error’)};xhr.open(‘POST’,’//www.chatbro.com/embed_chats/’,async);xhr.setRequestHeader(‘Content-Type’,’application/x-www-form-urlencoded’);xhr.send(‘parameters=’+encodeURIComponent(JSON.stringify(params)))}
/* Chatbro Widget Embed Code End */
ChatbroLoader({
encodedChatId: ’95ic’,
containerDivId: ‘chatbroHistory’,
useStandardHistoryWidgetSettings: true
});
</script>