diff --git a/Cargo.toml b/Cargo.toml index d78a684..2373885 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ crate-type = ["cdylib"] [dependencies] -seed = "^0.2.0" +seed = "^0.2.1" wasm-bindgen = "^0.2.29" web-sys = "^0.3.6" diff --git a/README.md b/README.md index 8d038e5..1370229 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ For example, with [Python](https://www.python.org/downloads/) installed, run `py (Linux users may need to run `python3 serve.py`.) If you run into permission errors on `build.sh`, try this command -to allow executing the file:`chmod +x build.sh`. If you run into persmission errors on `build.ps`, open Powershell as an administrator, and enter this command: `Set-ExecutionPolicy RemoteSigned`. +to allow executing the file:`chmod +x build.sh`. If you run into persmission errors on `build.ps1`, open Powershell as an administrator, and enter this command: `Set-ExecutionPolicy RemoteSigned`. Once you rename the crate in `Cargo.toml` (The `name` field under `[Package]`), make the following changes: diff --git a/src/lib.rs b/src/lib.rs index 18fc2ad..10147c7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,6 @@ #[macro_use] extern crate seed; use seed::prelude::*; -use wasm_bindgen::prelude::*; // Model @@ -45,5 +44,5 @@ fn view(state: seed::App, model: Model) -> El { #[wasm_bindgen] pub fn render() { - seed::run(Model::default(), update, view, "main", None); + seed::run(Model::default(), update, view, "main", None, None); } \ No newline at end of file