mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 18:20:51 +00:00
Merge pull request #1032 from derekdreery/window_docs
Add manual docs for single manual function.
This commit is contained in:
commit
8520a54f63
@ -20,6 +20,13 @@ extern crate wasm_bindgen;
|
||||
#[allow(unused_imports)]
|
||||
use js_sys::Object;
|
||||
|
||||
/// Getter for the `Window` object
|
||||
///
|
||||
/// [MDN Documentation]
|
||||
///
|
||||
/// *This API requires the following crate features to be activated: `Window`*
|
||||
///
|
||||
/// [MDN Documentation]: https://developer.mozilla.org/en-US/docs/Web/API/Window
|
||||
#[cfg(feature = "Window")]
|
||||
pub fn window() -> Option<Window> {
|
||||
use wasm_bindgen::JsCast;
|
||||
|
Loading…
x
Reference in New Issue
Block a user