Skip to content

Commit

Permalink
docs: webFrame.insertCSS should mention options arg (#33293)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
  • Loading branch information
trop[bot] and nornagon committed Mar 17, 2022
1 parent 4556add commit 7e0b787
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/api/web-frame.md
Expand Up @@ -110,9 +110,11 @@ webFrame.setSpellCheckProvider('en-US', {
})
```

### `webFrame.insertCSS(css)`
#### `webFrame.insertCSS(css[, options])`

* `css` string - CSS source code.
* `css` string
* `options` Object (optional)
* `cssOrigin` string (optional) - Can be either 'user' or 'author'. Sets the [cascade origin](https://www.w3.org/TR/css3-cascade/#cascade-origin) of the inserted stylesheet. Default is 'author'.

Returns `string` - A key for the inserted CSS that can later be used to remove
the CSS via `webFrame.removeInsertedCSS(key)`.
Expand Down

0 comments on commit 7e0b787

Please sign in to comment.