Skip to content

ElectronNewWindowWebContentsEvent

Unofficial

The event emitted for the deprecated new-window event.

Import:

import type { ElectronNewWindowWebContentsEvent } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ElectronNewWindowWebContentsEvent extends ElectronEvent

Extends: ElectronEvent

Properties

Property Type Description
newGuest? ElectronBrowserWindow The new window instance that must be set when the default window creation is prevented.

Methods

Method Returns Description
preventDefault() void Prevents the default action associated with the event.
(Inherited from ElectronEvent)