feat: add removeInsertedCSS (#16579)

This commit is contained in:
Heilig Benedek 2019-06-17 17:39:36 +02:00 committed by John Kleinschmidt
parent deebde66f9
commit 5a08522b98
8 changed files with 88 additions and 9 deletions

View file

@ -99,7 +99,18 @@ webFrame.setSpellCheckProvider('en-US', {
* `css` String - CSS source code.
Inserts `css` as a style sheet in the document.
Returns `String` - A key for the inserted CSS that can later be used to remove
the CSS via `webFrame.removeInsertedCSS(key)`.
Injects CSS into the current web page and returns a unique key for the inserted
stylesheet.
### `webFrame.removeInsertedCSS(key)`
* `key` String
Removes the inserted CSS from the current web page. The stylesheet is identified
by its key, which is returned from `webFrame.insertCSS(css)`.
### `webFrame.insertText(text)`