meow
This commit is contained in:
1 parent
542827f333
commit
4671c0e292
1 file changed
+2
-4
+2
-4
@@ -1,4 +1,3 @@
|
|||||||
document.addEventListener("DOMContentLoaded", () => {
|
|
||||||
const toggleBtn = document.getElementById("chatbot-toggle-btn");
|
const toggleBtn = document.getElementById("chatbot-toggle-btn");
|
||||||
const closeBtn = document.getElementById("chatbot-close-btn");
|
const closeBtn = document.getElementById("chatbot-close-btn");
|
||||||
const chatWindow = document.getElementById("chatbot-window");
|
const chatWindow = document.getElementById("chatbot-window");
|
||||||
@@ -11,8 +10,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
// We add a safety check in case chatbot-engine.js failed to load
|
// We add a safety check in case chatbot-engine.js failed to load
|
||||||
if (typeof window.PortfolioChatEngine === 'undefined') {
|
if (typeof window.PortfolioChatEngine === 'undefined') {
|
||||||
console.error("Chat engine not loaded");
|
console.error("Chat engine not loaded");
|
||||||
return;
|
} else {
|
||||||
}
|
|
||||||
const engine = new window.PortfolioChatEngine(window.portfolioData || {});
|
const engine = new window.PortfolioChatEngine(window.portfolioData || {});
|
||||||
let isWaiting = false;
|
let isWaiting = false;
|
||||||
|
|
||||||
@@ -162,4 +160,4 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
|
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
Reference in new issue
Block a user