use web_sys;/// Convenience function to avoid repeating expect logic.
pubfnwindow()->web_sys::Window{web_sys::window().expect("Can't find the global Window")}/// Convenience function to access the web_sys DOM document.
pubfndocument()->web_sys::Document{window().document().expect("Can't find document")}