Add Chatwoot widget to main page
Made-with: Cursor
This commit is contained in:
parent
2f8bd423ca
commit
afad85816e
16
index.html
16
index.html
|
|
@ -15,5 +15,21 @@
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<script type="module" src="/src/main.tsx"></script>
|
<script type="module" src="/src/main.tsx"></script>
|
||||||
|
<script>
|
||||||
|
(function(d, t) {
|
||||||
|
var BASE_URL = "https://chat.yaltopia.com/";
|
||||||
|
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: "uRqtFfcGpenjUMJwC67HXCaA",
|
||||||
|
baseUrl: BASE_URL
|
||||||
|
});
|
||||||
|
};
|
||||||
|
})(document, "script");
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user