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
| Parameter | Type |
|---|---|
__namedParameters | { hidden?: boolean; window: PageEvents; } |
__namedParameters.hidden? | boolean |
__namedParameters.window | PageEvents |
