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;