Skip to content

Function: pageInterrupts()

Documentation / @wtf/platform-browser / runtime / pageInterrupts

function pageInterrupts(__namedParameters): Interrupts;

Defined in: packages/platform-browser/src/runtime.ts:21

What says to stop of a page: its pagehide, as it is left, or, with hidden, its being hidden (hidden), of the visibilitychange that reaches the window from its document, as a phone may end a tab behind another without a pagehide.

await runMain(program, { platform, interrupts: pageInterrupts({ window, hidden: true }) })

Parameters

ParameterType
__namedParameters{ hidden?: boolean; window: PageEvents; }
__namedParameters.hidden?boolean
__namedParameters.windowPageEvents

Returns

Interrupts