1681-engine / electron / lockDownWindow
Function: lockDownWindow() ​
ts
function lockDownWindow(win, o): void;Defined in: src/electron/lockdown.ts:25
Keeps a window on the game: a new window is never opened (an allowed link goes to the system browser instead, any other is refused), the window never navigates or redirects away from the game's own page, and a packaged build refuses the DevTools keys (set webPreferences.devTools: !app.isPackaged too: the keys are only the visible way in).
Parameters ​
| Parameter | Type |
|---|---|
win | WindowLike |
o | LockdownOptions |
Returns ​
void