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

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

FirstFrameWindow ​

Page window, with the minimum the helper uses: a DOM Window is assignable. It is the app's window (the one that receives the iframe's messages), not the iframe's.

Methods ​

addEventListener() ​

addEventListener(type, listener): void

Registers the message listener.

Parameters ​

type ​

"message"

listener ​

(event) => void

Returns ​

void


removeEventListener() ​

removeEventListener(type, listener): void

Removes the message listener.

Parameters ​

type ​

"message"

listener ​

(event) => void

Returns ​

void