Skip to content

Commit e59e8d0

Browse files
authored
Merge pull request #237 from yel-hadd/master
Integrate the new chatbot widget, remove Ask GPT button
2 parents fc607ab + e5e1081 commit e59e8d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/.vuepress/components/Chat.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default {
9999
botTitle: "AI Assistant",
100100
},
101101
iframeUrl: "https://chatbot.cloudlinux.com/docs/cloudlinux",
102-
windowWidth: window.innerWidth,
102+
windowWidth: 0, // Changed from window.innerWidth to avoid SSR error
103103
};
104104
},
105105
computed: {
@@ -109,6 +109,7 @@ export default {
109109
},
110110
mounted() {
111111
window.addEventListener("resize", this.handleResize);
112+
this.handleResize(); // Set initial windowWidth on client-side
112113
},
113114
beforeUnmount() {
114115
window.removeEventListener("resize", this.handleResize);

0 commit comments

Comments
 (0)