Skip to content

Commit

Permalink
Merge pull request #7 from bwasty/develop
Browse files Browse the repository at this point in the history
Fix WebGL example
  • Loading branch information
bwasty authored Mar 11, 2019
2 parents e8094cd + 9fd2c9f commit 60e9139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn some_non_wasm_function() -> u32 {
}

#[cfg(feature = "wasm")]
#[wasm_bindgen(start)]
#[wasm_bindgen]
pub fn start() -> Result<(), JsValue> {
let document = web_sys::window().unwrap().document().unwrap();
let canvas = document.get_element_by_id("canvas").unwrap();
Expand Down

0 comments on commit 60e9139

Please sign in to comment.