From c92de398b983f5bb1775ec51efdef782efd8d779 Mon Sep 17 00:00:00 2001 From: maver Date: Sat, 10 Jun 2023 20:07:55 +0200 Subject: [PATCH] Fire event after a chat has successfully loaded --- public/script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/script.js b/public/script.js index 46dc3d40d..cef72b270 100644 --- a/public/script.js +++ b/public/script.js @@ -4368,6 +4368,7 @@ async function getChat() { } await getChatResult(); await saveChat(); + eventSource.emit('chatLoaded', {detail: {id: this_chid, character: characters[this_chid]}}); setTimeout(function () {