diff --git a/Cargo.toml b/Cargo.toml index b6c28c6..343d8c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ crate-type = ["cdylib"] [dependencies] -seed = "^0.2.4" +seed = "^0.2.5" wasm-bindgen = "^0.2.33" web-sys = "^0.3.6" diff --git a/index.html b/index.html index 0291a3c..cde8f71 100644 --- a/index.html +++ b/index.html @@ -6,9 +6,9 @@ - + - + A Title @@ -16,7 +16,7 @@
- + diff --git a/serve.py b/serve.py index 9506a59..545c1b1 100644 --- a/serve.py +++ b/serve.py @@ -13,9 +13,8 @@ class Handler(http.server.SimpleHTTPRequestHandler): def do_GET(self): urlparts = urllib.parse.urlparse(self.path) request_file_path = urlparts.path.strip('/') - if not os.path.exists(request_file_path): - self.path = 'index.html' + self.path = '/' return http.server.SimpleHTTPRequestHandler.do_GET(self) diff --git a/src/lib.rs b/src/lib.rs index e2f2d43..f944081 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,7 +37,7 @@ fn update(msg: Msg, model: Model) -> Update { fn view(_state: seed::App, model: &Model) -> El { button![ - simple_ev("click", Msg::Increment), + simple_ev(Ev::Click, Msg::Increment), format!("Hello, World × {}", model.val) ] }