Skip to content

Commit

Permalink
Disable web module on other targets than wasm32 (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zakarum authored and goddessfreya committed Aug 14, 2019
1 parent dbdde3d commit 7ee9d56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform/web.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(target_arch = "wasm32")]

#[cfg(feature = "stdweb")]
use stdweb::web::html_element::CanvasElement;

Expand Down

0 comments on commit 7ee9d56

Please sign in to comment.