Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danikaze committed Oct 2, 2024
1 parent b1ce510 commit f0e6c59
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,20 @@ Open DevTools for the specified `BrowserWindow` instance or the focused one.
Type: `BrowserWindow`\
Default: The focused `BrowserWindow`

### windowSelector(filter)

Allows to specify customized options for each window.

#### filter

Type: `(window: BrowserWindow) => boolean | Partial<Options>`\
Default: `() => true` (Use the global options for every window).

It can return:
- `true`: Means `debug` is enabled for every window with the global options
- `false`: Disable `debug` for the given window (maintain the global options for the rest)
- `Partial<Options>`: Object to override the global options just for the given window

## Related

- [electron-util](https://github.com/sindresorhus/electron-util) - Useful utilities for developing Electron apps and modules
Expand Down

0 comments on commit f0e6c59

Please sign in to comment.