Skip to content

ElectronApp.on('new-window-for-tab') method

ElectronApp › on(‘new-window-for-tab’)

Unofficial

Registers a listener for the new-window-for-tab event.

Emitted when the user clicks the native macOS new tab button. macOS only.

Signature:

on(event: "new-window-for-tab", listener: (event: ElectronEvent) => void): this

Parameters:

Parameter Type Description
event "new-window-for-tab" The event name.
listener (event: ElectronEvent) => void The event handler.

Returns: thisThis ElectronApp instance.