Get everything (I can) running
parent
5cb79f2828
commit
e7edfc1e8c
|
@ -0,0 +1,5 @@
|
|||
# Electron applications in Rust
|
||||
|
||||
Each app is a starter example, and can be run with `yarn install && yarn start`.
|
||||
|
||||
`stdweb` and `yew` examples currently don't run.
|
|
@ -0,0 +1,10 @@
|
|||
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)
|
||||
})
|
Loading…
Reference in New Issue