ElectronWebContentsModule.fromDevToolsTargetId method
ElectronWebContentsModule › fromDevToolsTargetId
Unofficial
Looks up aWebContents instance based on its assigned Chrome DevTools Protocol TargetID. Signature:
fromDevToolsTargetId(targetId: string): ElectronWebContents | undefinedParameters:
| Parameter | Type | Description |
|---|---|---|
| targetId | string | The Chrome DevTools Protocol TargetID to look up. |
Returns: ElectronWebContents | undefined — A WebContents instance with the given TargetID, or undefined if there is no WebContents associated with the given TargetID.