Add a minimal and plain stdweb example

This commit is contained in:
2018-09-08 23:38:34 -04:00
parent ab6e31770d
commit 5cb79f2828
27 changed files with 16026 additions and 17 deletions

View File

@ -1,5 +0,0 @@
import { main } from "./electron_percy_wasm"
let rootNode = document.getElementById('root')
rootNode.parentElement.replaceChild(main(), rootNode)
rootNode = document.getElementById('root')

View File

@ -1,6 +1,9 @@
const app = import("./app")
app.then(() => {
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)