This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk-igaming/first-frame / FirstFrameTarget

FirstFrameTarget ​

The FIRST iframe, with the minimum the helper uses: an HTMLIFrameElement is assignable. The expected origin and the destination of the messages come from src (re-read on every message).

Properties ​

contentWindow ​

readonly contentWindow: { postMessage: void; } | null

The iframe's window; null while it is not in the document.

Union Members ​

Type Literal ​

{ postMessage: void; }

postMessage() ​

postMessage(message, targetOrigin): void

Sends a message to the iframe.

Parameters ​
message ​

string

targetOrigin ​

string

Returns ​

void


null


src ​

readonly src: string

URL loaded in the iframe (the session's launchUrl). The trusted origin comes from it.