ElectronWebContentsModule.fromId method
ElectronWebContentsModule › fromId
Unofficial
Looks up aWebContents instance based on its ID. Signature:
fromId(id: number): ElectronWebContents | undefinedParameters:
| Parameter | Type | Description |
|---|---|---|
| id | number | The ID to look up. |
Returns: ElectronWebContents | undefined — A WebContents instance with the given ID, or undefined if there is no WebContents associated with the given ID.