Skip to content

ElectronBrowserWindow.fromBrowserView method

ElectronBrowserWindow › fromBrowserView

Unofficial

Returns the window that owns the given browserView.

Signature:

fromBrowserView(browserView: ElectronBrowserView): ElectronBrowserWindow | null

Parameters:

ParameterTypeDescription
browserViewElectronBrowserViewThe view to look up.

Returns: ElectronBrowserWindow | nullThe owning BrowserWindow or null if the view is not attached to any window.