Skip to content

ElectronWebContentsModule.fromDevToolsTargetId method

ElectronWebContentsModule › fromDevToolsTargetId

Unofficial

Looks up a WebContents instance based on its assigned Chrome DevTools Protocol TargetID.

Signature:

fromDevToolsTargetId(targetId: string): ElectronWebContents | undefined

Parameters:

Parameter Type Description
targetId string The Chrome DevTools Protocol TargetID to look up.

Returns: ElectronWebContents | undefinedA WebContents instance with the given TargetID, or undefined if there is no WebContents associated with the given TargetID.