From e041c6d9e8c103b68f9c85b3f6c13f961384f929 Mon Sep 17 00:00:00 2001 From: ln0422 Date: Wed, 8 Apr 2026 10:09:05 +0800 Subject: [PATCH] Fix chat.js BASE_PATH conflict: remove declaration entirely var hoisting still conflicts with const from main.js. chat.js now relies on BASE_PATH declared in main.js. Co-Authored-By: Claude Opus 4.6 --- app/static/js/chat.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/static/js/chat.js b/app/static/js/chat.js index a804e8e..9fac14c 100644 --- a/app/static/js/chat.js +++ b/app/static/js/chat.js @@ -1,6 +1,5 @@ // ── Chat Widget JavaScript ── -// BASE_PATH is declared in main.js (loaded first on index.html) -if (typeof BASE_PATH === 'undefined') var BASE_PATH = window.BASE_PATH || ''; +// NOTE: Uses BASE_PATH from main.js (loaded before this file on index.html) let chatSessionId = sessionStorage.getItem('chat_session'); if (!chatSessionId) {