Open MikeTodd opened 4 years ago
Could you put more details where is that line (file) pls? Thanks
@kaaduu it's in ajax-chat/lib/template/loggedIn.html, in the function initialize(), around line 196:
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, true, initialize);
window.addEventListener("beforeunload", function(e){
ajaxChat.logout();
}, false);
The first line I list should already be present, so you just need to add the lines after that.
Hi, In fact, it doesn't work very when clicking on logout, it does like a loop. Thanks.
I've noticed that the chat doesn't automatically log you out if you close the chat window. That's an easy enough to do: just add the following lines after the ajaxChat.init() call: