mirror of
https://github.com/speice-io/isomorphic-rust
synced 2024-11-17 05:28:32 -05:00
Get everything (I can) running
This commit is contained in:
parent
5cb79f2828
commit
e7edfc1e8c
5
README.md
Normal file
5
README.md
Normal 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.
|
10
percy/static/app_loader.js
Normal file
10
percy/static/app_loader.js
Normal 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)
|
||||
})
|
Loading…
Reference in New Issue
Block a user