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
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<Header />
|
||||
<main>
|
||||
<Hero />
|
||||
<Features />
|
||||
<Updates />
|
||||
<Team />
|
||||
</main>
|
||||
<Footer />
|
||||
<Script
|
||||
id="chatwoot-sdk"
|
||||
strategy="afterInteractive"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
(function(d,t) {
|
||||
var BASE_URL="https://support.chrischro.me";
|
||||
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: 't8WG4JuE7v9depgKPSqhtaEN',
|
||||
baseUrl: BASE_URL
|
||||
})
|
||||
}
|
||||
})(document,"script");
|
||||
return (
|
||||
<>
|
||||
<Header />
|
||||
<main>
|
||||
<Hero />
|
||||
<Features />
|
||||
<Updates />
|
||||
<Team />
|
||||
</main>
|
||||
<Footer />
|
||||
<Script
|
||||
id="chatwoot-sdk"
|
||||
strategy="afterInteractive"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
window.chatwootSettings = {"position":"right","type":"expanded_bubble","launcherTitle":"Chat with us!", "darkTheme": "auto"};
|
||||
(function(d,t) {
|
||||
var BASE_URL="https://support.chrischro.me";
|
||||
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: 't8WG4JuE7v9depgKPSqhtaEN',
|
||||
baseUrl: BASE_URL
|
||||
})
|
||||
}
|
||||
})(document,"script");
|
||||
`,
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue