2020-11-14 04:42:32 +13:00
|
|
|
import ClientApp from "./components/ClientApp.svelte"
|
2019-09-07 17:50:35 +12:00
|
|
|
|
2020-11-14 04:42:32 +13:00
|
|
|
// Initialise client app
|
|
|
|
const loadBudibase = () => {
|
2020-11-18 01:08:24 +13:00
|
|
|
window.document.body.innerHTML = ""
|
2020-11-14 04:42:32 +13:00
|
|
|
new ClientApp({
|
|
|
|
target: window.document.body,
|
2020-05-30 01:06:10 +12:00
|
|
|
})
|
2020-02-03 22:24:25 +13:00
|
|
|
}
|
|
|
|
|
2020-11-14 04:42:32 +13:00
|
|
|
// Attach to window so the HTML template can call this when it loads
|
|
|
|
window.loadBudibase = loadBudibase
|