fix: resolve Vite parse5 HTML error in index.html
Fix malformed Chatwoot chat widget script that caused Vite's parse5 HTML parser to throw "eof-in-element-that-can-contain-only-text". Also fix broken URL (https// -> https://) for the chat widget. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -11,18 +11,18 @@
|
|||||||
<script type="module" src="/src/main.tsx"></script>
|
<script type="module" src="/src/main.tsx"></script>
|
||||||
<script>
|
<script>
|
||||||
(function(d,t) {
|
(function(d,t) {
|
||||||
var BASE_URL="https//chat.hoaledgeriq.com";
|
var BASE_URL="https://chat.hoaledgeriq.com";
|
||||||
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
||||||
g.src=BASE_URL+"/packs/js/sdk.js";
|
g.src=BASE_URL+"/packs/js/sdk.js";
|
||||||
g.async = true;
|
g.async=true;
|
||||||
s.parentNode.insertBefore(g,s);
|
s.parentNode.insertBefore(g,s);
|
||||||
g.onload=function(){
|
g.onload=function(){
|
||||||
window.chatwootSDK.run({
|
window.chatwootSDK.run({
|
||||||
websiteToken: 'K6VXvTtKXvaCMvre4yK85SPb',
|
websiteToken:'K6VXvTtKXvaCMvre4yK85SPb',
|
||||||
baseUrl: BASE_URL
|
baseUrl:BASE_URL
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})(document,"script");
|
})(document,"script");
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user