2
0

chore(lp): 📦️ Import existing Landing page

This commit is contained in:
Baptiste Arnaud
2022-02-09 18:40:40 +01:00
parent 65b30bfc48
commit 36be3577e1
136 changed files with 14867 additions and 20 deletions

View File

@ -0,0 +1,16 @@
const loadLandbot = (): Promise<void> =>
new Promise((resolve) => {
const existingScript = document.getElementById('landbot-lib')
if (!existingScript) {
const script = document.createElement('script')
script.src = 'https://static.landbot.io/landbot-3/landbot-3.0.0.js'
script.id = 'landbot-lib'
document.body.appendChild(script)
script.onload = () => {
resolve()
}
}
if (existingScript) resolve()
})
export default loadLandbot