Skip to content

ElectronWindowOpenHandlerResponse

Unofficial

Response returned by the ElectronWebContents.setWindowOpenHandler handler, deciding whether a requested new window is allowed or denied.

Import:

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

Signature:

export interface ElectronWindowOpenHandlerResponse

Properties

Property Type Description
action 'allow' | 'deny' Whether to allow or deny creating the new window.
overrideBrowserWindowOptions? BrowserWindowConstructorOptions Overrides passed to the created ElectronBrowserWindow. Only used when action is 'allow'.