main/page-tools
Interfaces
Section titled “Interfaces”PageToolDependencies
Section titled “PageToolDependencies”Defined in: app/src/main/page-tools.ts:9
What the tools of a web page need from the browser process.
Properties
Section titled “Properties”developerTools
Section titled “developerTools”
readonlydeveloperTools: () =>boolean
Defined in: app/src/main/page-tools.ts:11
Whether a policy lets people open the developer tools.
Returns
Section titled “Returns”boolean
logger
Section titled “logger”
readonlylogger:Logger
Defined in: app/src/main/page-tools.ts:12
Functions
Section titled “Functions”runPageCommand()
Section titled “runPageCommand()”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.
Parameters
Section titled “Parameters”window
Section titled “window”The window of the page’s tab.
command
Section titled “command”The command.
contents
Section titled “contents”WebContents
The page.
What the tools need.
Returns
Section titled “Returns”Promise<void>