mirror of
				https://github.com/speice-io/isomorphic-rust
				synced 2025-10-28 16:10:33 -04:00 
			
		
		
		
	Add a minimal and plain stdweb example
This commit is contained in:
		| @ -1,5 +0,0 @@ | ||||
| import { main } from "./electron_percy_wasm" | ||||
|  | ||||
| let rootNode = document.getElementById('root') | ||||
| rootNode.parentElement.replaceChild(main(), rootNode) | ||||
| rootNode = document.getElementById('root') | ||||
| @ -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) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user