ElectronWebContents.on('dom-ready') method
ElectronWebContents › on(‘dom-ready’)
Unofficial
Registers a listener for thedom-ready event.Signature:
on($event: "dom-ready", listener: ($event: ElectronEvent) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | "dom-ready" | |
| listener | ($event: ElectronEvent) => void | Called when the dom-ready event is emitted. |
Returns: this — This web contents instance.