Add Support Chat #271

Merged
root merged 1 commit from rt-chat into master 2025-01-19 07:48:27 +00:00
2 changed files with 18 additions and 0 deletions

View file

@ -90,6 +90,8 @@
{%- if lang == config.default_language %}
{% include 'language_redirect.html' %}
{% endif -%}
{% include 'chat.html' %}
</head>
<body>

16
templates/chat.html Normal file
View file

@ -0,0 +1,16 @@
<script>
(function (d, t) {
var BASE_URL = "https://chatwoot.omaps.org";
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: 'dfnLajFis1ksS3QiemusHpdT',
baseUrl: BASE_URL
})
}
})(document, "script");
</script>