Small update to chatwoot embed
All checks were successful
Deploy to Server / deploy (push) Successful in 1m28s
All checks were successful
Deploy to Server / deploy (push) Successful in 1m28s
This commit is contained in:
parent
51a0eaa9ff
commit
343971540f
|
@ -7,39 +7,40 @@ import Footer from '@/components/footer'
|
||||||
import Updates from '@/components/updates' // Import Blog component
|
import Updates from '@/components/updates' // Import Blog component
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Header />
|
<Header />
|
||||||
<main>
|
<main>
|
||||||
<Hero />
|
<Hero />
|
||||||
<Features />
|
<Features />
|
||||||
<Updates />
|
<Updates />
|
||||||
<Team />
|
<Team />
|
||||||
</main>
|
</main>
|
||||||
<Footer />
|
<Footer />
|
||||||
<Script
|
<Script
|
||||||
id="chatwoot-sdk"
|
id="chatwoot-sdk"
|
||||||
strategy="afterInteractive"
|
strategy="afterInteractive"
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: `
|
__html: `
|
||||||
(function(d,t) {
|
window.chatwootSettings = {"position":"right","type":"expanded_bubble","launcherTitle":"Chat with us!", "darkTheme": "auto"};
|
||||||
var BASE_URL="https://support.chrischro.me";
|
(function(d,t) {
|
||||||
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
var BASE_URL="https://support.chrischro.me";
|
||||||
g.src=BASE_URL+"/packs/js/sdk.js";
|
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
||||||
g.defer = true;
|
g.src=BASE_URL+"/packs/js/sdk.js";
|
||||||
g.async = true;
|
g.defer = true;
|
||||||
s.parentNode.insertBefore(g,s);
|
g.async = true;
|
||||||
g.onload=function(){
|
s.parentNode.insertBefore(g,s);
|
||||||
window.chatwootSDK.run({
|
g.onload=function(){
|
||||||
websiteToken: 't8WG4JuE7v9depgKPSqhtaEN',
|
window.chatwootSDK.run({
|
||||||
baseUrl: BASE_URL
|
websiteToken: 't8WG4JuE7v9depgKPSqhtaEN',
|
||||||
})
|
baseUrl: BASE_URL
|
||||||
}
|
})
|
||||||
})(document,"script");
|
}
|
||||||
|
})(document,"script");
|
||||||
`,
|
`,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue