OpenWindowOptions
Properties
Section titled “Properties”allowAnyOrigin?
Section titled “allowAnyOrigin?”optional allowAnyOrigin?: boolean;Dev only: accept messages from any origin and post with targetOrigin ’*’.
features?
Section titled “features?”optional features?: string;window.open feature string, e.g. ‘popup,width=480,height=640’.
localWindow?
Section titled “localWindow?”optional localWindow?: WindowEventTarget;Test seam. Defaults to the global window.
openFn?
Section titled “openFn?”optional openFn?: (url, target, features?) => | WindowLike | null;Test seam. Defaults to window.open.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
url | string |
target | string |
features? | string |
Returns
Section titled “Returns”| WindowLike
| null
peerOrigin
Section titled “peerOrigin”peerOrigin: string;Exact origin of the page being opened, e.g. ‘https://pay.example.com’. Required.
readyTimeoutMs?
Section titled “readyTimeoutMs?”optional readyTimeoutMs?: number;Give up on the ready handshake after this long. Default 15000ms.