939 B
939 B
WindowOpenHandlerResponse Object
action
string - Can beallow
ordeny
. Controls whether new window should be created.overrideBrowserWindowOptions
BrowserWindowConstructorOptions (optional) - Allows customization of the created window.outlivesOpener
boolean (optional) - By default, child windows are closed when their opener is closed. This can be changed by specifyingoutlivesOpener: true
, in which case the opened window will not be closed when its opener is closed.createWindow
(options: BrowserWindowConstructorOptions) => WebContents (optional) - If specified, will be called instead ofnew BrowserWindow
to create the new child window and eventdid-create-window
will not be emitted. Constructed child window should use passedoptions
object. This can be used for example to have the new window open as a BrowserView instead of in a separate window.