diff --git a/docusaurus.config.js b/docusaurus.config.js index cec310774..6ba65f272 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -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, diff --git a/static/scripts/chatwoot.js b/static/scripts/chatwoot.js new file mode 100644 index 000000000..dc2702153 --- /dev/null +++ b/static/scripts/chatwoot.js @@ -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); + g.onload=function(){ + window.chatwootSDK.run({ + websiteToken: 'DNsHCafpdxqz3dDU1SPggAon', + baseUrl: BASE_URL + }) + } +})(document,"script");