From 7408673e4143b3318f44ba9d007ec14149536c7e Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 8 May 2024 20:59:59 +0300 Subject: [PATCH] Back to const --- public/scripts/world-info.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index d780dd4ba..77ccbf8bd 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -2575,8 +2575,8 @@ async function checkWorldInfo(chat, maxContext) { } }); - var worldInfoBefore = WIBeforeEntries.length ? WIBeforeEntries.join('\n') : ''; - var worldInfoAfter = WIAfterEntries.length ? WIAfterEntries.join('\n') : ''; + const worldInfoBefore = WIBeforeEntries.length ? WIBeforeEntries.join('\n') : ''; + const worldInfoAfter = WIAfterEntries.length ? WIAfterEntries.join('\n') : ''; if (shouldWIAddPrompt) { const originalAN = context.extensionPrompts[NOTE_MODULE_NAME].value;