Skip to content

ElectronWebFrameMain.once method

ElectronWebFrameMain › once

Unofficial

Registers a one-time listener for the dom-ready event.

Signature:

once(event: "dom-ready", listener: () => void): this

Parameters:

ParameterTypeDescription
event"dom-ready"The event name.
listener() => voidCalled when the document is loaded.

Returns: thisThis frame instance.