Function get_window_and_document

Source
pub fn get_window_and_document() -> Result<(Rc<Window>, Rc<Document>), JsValue>
Expand description

Returns the Window and Document objects.

These are returned inside an Rc so that their ownership can be shared.