Function: canShowWindow()
function canShowWindow(env?, platform?): boolean;
Defined in: browser/manager.ts:72
Whether a window can be shown. On Linux it needs an X or Wayland display; without one (Docker, a server) the driver refuses rather than trying, so it never reaches a display it wasn't given.
Parameters
| Parameter | Type | Default value |
|---|---|---|
env | ProcessEnv | process.env |
platform | Platform | process.platform |
Returns
boolean