beet_dom 0.0.8

Utilities for dom rendering and interaction
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// TODO page member function
#[allow(unused)]
pub fn to_page(path: &str) {
	#[cfg(target_arch = "wasm32")]
	{
		web_sys::window()
			.unwrap()
			.location()
			.set_href(&path)
			.unwrap();
	}
	#[cfg(not(target_arch = "wasm32"))]
	unimplemented!();
}