Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,11 @@ module.exports = {
async: true,
defer: true,
},
{
src: "/docs/scripts/chatwoot.js",
async: true,
defer: true,
},
/*{
src: "/docs/scripts/chat.js",
async: true,
Expand Down
13 changes: 13 additions & 0 deletions static/scripts/chatwoot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(function(d,t) {
var BASE_URL="https://chatwoot.keploy.io";
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=BASE_URL+"/packs/js/sdk.js";
g.async = true;
s.parentNode.insertBefore(g,s);
Comment on lines +1 to +6
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file doesn't follow the repository's Prettier conventions (e.g., spacing, const/let instead of var, and consistent quoting). Since static/scripts/*.js is not ignored by Prettier, please reformat this snippet to match the configured style to avoid formatting churn in future edits.

Copilot uses AI. Check for mistakes.
g.onload=function(){
window.chatwootSDK.run({
websiteToken: 'DNsHCafpdxqz3dDU1SPggAon',
baseUrl: BASE_URL
})
}
Comment on lines +8 to +12
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

window.chatwootSDK.run(...) should be terminated with a semicolon (repo Prettier config has semi: true), and the string quoting should be consistent with the repo setting (singleQuote: false). Please format this block accordingly.

Copilot uses AI. Check for mistakes.
})(document,"script");
Loading