forked from organicmaps/website
Add Support Chat
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
This commit is contained in:
parent
2d9238ee7f
commit
c65531e156
2 changed files with 18 additions and 0 deletions
|
@ -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
16
templates/chat.html
Normal 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>
|
Loading…
Add table
Reference in a new issue