Skip to content

Commit

Permalink
feat: add chat support (#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
puria authored Feb 19, 2025
1 parent 4505a96 commit 635068e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions webapp/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,20 @@ SPDX-License-Identifier: AGPL-3.0-or-later

<ParaglideJS {i18n}>
<slot />
<script>
(function(d,t) {
var BASE_URL="https://chatwoot.ss.did.co.im";
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=BASE_URL+"/packs/js/sdk.js";
g.defer = true;
g.async = true;
s.parentNode.insertBefore(g,s);
g.onload=function(){
window.chatwootSDK.run({
websiteToken: 'Rr6aY328gJ5TnF9Cu2uvucQQ',
baseUrl: BASE_URL
})
}
})(document,"script");
</script>
</ParaglideJS>

0 comments on commit 635068e

Please sign in to comment.