Get everything (I can) running

pull/1/head
Bradlee Speice 2018-09-08 23:46:40 -04:00
parent 5cb79f2828
commit e7edfc1e8c
2 changed files with 15 additions and 0 deletions

5
README.md Normal file
View File

@ -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.

View File

@ -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)
})