1pub fn window() -> web_sys::Window { 2 web_sys::window().unwrap() 3} 4 5pub fn document() -> web_sys::Document { 6 window().document().unwrap() 7}