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-catalyst-latest';

Signature:

export interface ElectronWindowOpenHandlerResponse

Properties

PropertyTypeDescription
action'allow' | 'deny'Whether to allow or deny creating the new window.
overrideBrowserWindowOptions?BrowserWindowConstructorOptionsOverrides passed to the created ElectronBrowserWindow. Only used when action is 'allow'.