diff --git a/js/app.js b/js/app.js index d7b20a1..3dcee4d 100644 --- a/js/app.js +++ b/js/app.js @@ -52,12 +52,18 @@ const streamerBotClient = new StreamerbotClient({ title: currentLang.streamerbotconnected, text: `` }); - if (eventsMockup == true) { stopMockupSystem(); } + if (eventsMockup == true) { + chatContainer.innerHTML = ''; + stopMockupSystem(); + } }, onDisconnect: () => { console.error(currentLang.streamerbotdisconnected); streamerBotConnected = false; - if (eventsMockup == true) { startMockupSystem(); } + if (eventsMockup == true) { + startMockupSystem(); + chatContainer.innerHTML = ''; + } } }); @@ -296,4 +302,4 @@ const notifySuccess = (success) => { function escapeRegex(string) { return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); -} \ No newline at end of file +}