We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fc607ab + e5e1081 commit e59e8d0Copy full SHA for e59e8d0
docs/.vuepress/components/Chat.vue
@@ -99,7 +99,7 @@ export default {
99
botTitle: "AI Assistant",
100
},
101
iframeUrl: "https://chatbot.cloudlinux.com/docs/cloudlinux",
102
- windowWidth: window.innerWidth,
+ windowWidth: 0, // Changed from window.innerWidth to avoid SSR error
103
};
104
105
computed: {
@@ -109,6 +109,7 @@ export default {
109
110
mounted() {
111
window.addEventListener("resize", this.handleResize);
112
+ this.handleResize(); // Set initial windowWidth on client-side
113
114
beforeUnmount() {
115
window.removeEventListener("resize", this.handleResize);
0 commit comments