Skip to content

ElectronWebContentsModule.fromFrame method

ElectronWebContentsModule › fromFrame

Unofficial

Looks up a WebContents instance based on a WebFrameMain.

Signature:

fromFrame(frame: ElectronWebFrameMain): ElectronWebContents | undefined

Parameters:

ParameterTypeDescription
frameElectronWebFrameMainThe WebFrameMain to look up.

Returns: ElectronWebContents | undefined — A WebContents instance with the given WebFrameMain, or undefined if there is no WebContents associated with the given WebFrameMain.