mirror of
https://github.com/speice-io/isomorphic-rust
synced 2024-11-16 13:09:30 -05:00
10 lines
362 B
JavaScript
10 lines
362 B
JavaScript
|
const app = import("./percy")
|
||
|
app.then(module => {
|
||
|
console.log("Finished resolving application bundle")
|
||
|
let rootNode = document.getElementById('root')
|
||
|
rootNode.parentElement.replaceChild(module.main(), rootNode)
|
||
|
rootNode = document.getElementById('root')
|
||
|
}, (e) => {
|
||
|
console.log("Unable to resolve application bundle: ")
|
||
|
console.log(e)
|
||
|
})
|