Skip to content

main/page-tools

Defined in: app/src/main/page-tools.ts:9

What the tools of a web page need from the browser process.

readonly developerTools: () => boolean

Defined in: app/src/main/page-tools.ts:11

Whether a policy lets people open the developer tools.

boolean

readonly logger: Logger

Defined in: app/src/main/page-tools.ts:12

runPageCommand(window, command, contents, deps): Promise<void>

Defined in: app/src/main/page-tools.ts:23

Prints a web page, saves it, shows its source in a new tab, or opens or closes its developer tools. The module loads with the first of these commands.

BrowserWindowController

The window of the page’s tab.

PageCommand

The command.

WebContents

The page.

PageToolDependencies

What the tools need.

Promise<void>