Skip to content

1681-engine / electron / LockdownOptions

Interface: LockdownOptions ​

Defined in: src/electron/lockdown.ts:5

How lockDownWindow treats a window.

Properties ​

devServerUrl? ​

ts
optional devServerUrl?: string;

Defined in: src/electron/lockdown.ts:13

A dev run's page origin, allowed for navigation; leave unset in a packaged build whatever the environment says.


devToolsKey? ​

ts
optional devToolsKey?: string | null;

Defined in: src/electron/lockdown.ts:15

In a dev run, this key toggles DevTools. Default F12; null for none.


external ​

ts
external: ExternalPolicy;

Defined in: src/electron/lockdown.ts:9

The links that may leave for the system browser.


log? ​

ts
optional log?: (...args) => void;

Defined in: src/electron/lockdown.ts:17

Where refusals are reported. Default console.log.

Parameters ​

ParameterType
...argsunknown[]

Returns ​

void


packaged ​

ts
packaged: boolean;

Defined in: src/electron/lockdown.ts:11

app.isPackaged: a packaged build refuses the DevTools keys.


shell ​

ts
shell: ShellLike;

Defined in: src/electron/lockdown.ts:7

electron.shell, which opens an allowed link in the system browser.

Released under the MIT License.