Skip to content

ElectronBrowserWindow.fromBrowserView method

ElectronBrowserWindow › fromBrowserView

Unofficial

Returns the window that owns the given browserView.

Signature:

fromBrowserView(browserView: ElectronBrowserView): ElectronBrowserWindow | null

Parameters:

Parameter Type Description
browserView ElectronBrowserView The view to look up.

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