ElectronBrowserWindow.fromWebContents method
ElectronBrowserWindow › fromWebContents
Unofficial
Returns the window that owns the givenwebContents. Signature:
fromWebContents(webContents: ElectronWebContents): ElectronBrowserWindow | nullParameters:
| Parameter | Type | Description |
|---|---|---|
| webContents | ElectronWebContents | The web contents to look up. |
Returns: ElectronBrowserWindow | null — The owning BrowserWindow or null if the contents are not owned by a window.