From 02fe2455216578815d6300ba2a44d462a840142d Mon Sep 17 00:00:00 2001 From: Jeremy Rose Date: Wed, 16 Mar 2022 07:56:20 -0700 Subject: [PATCH] docs: webFrame.insertCSS should mention options arg (#33274) --- docs/api/web-frame.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/api/web-frame.md b/docs/api/web-frame.md index 9384fe2c9861..b59d98c54cb6 100644 --- a/docs/api/web-frame.md +++ b/docs/api/web-frame.md @@ -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)`.