Function silkenweb::window::on_pagehide

source ·
pub fn on_pagehide(
    f: impl FnMut(PageTransitionEvent) + 'static
) -> EventCallback
Expand description

Add a pagehide event handler at the window level.

This only has an effect on WASM targets.