From 4ff7cf2bcc0e6ff79b6f1954519ae41789fba741 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Fri, 25 Nov 2016 23:33:31 +1100 Subject: [PATCH] Update web-frame docs --- docs/api/web-frame.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/api/web-frame.md b/docs/api/web-frame.md index 12d9167bc7..16d53edd1a 100644 --- a/docs/api/web-frame.md +++ b/docs/api/web-frame.md @@ -66,6 +66,8 @@ Sets the maximum and minimum layout-based (i.e. non-visual) zoom level. * `language` String * `autoCorrectWord` Boolean * `provider` Object + * `spellCheck` Function - Returns `Boolean` + * `text` String Sets a provider for spell checking in input fields and text areas. @@ -127,10 +129,12 @@ webFrame.registerURLSchemeAsPrivileged('foo', { bypassCSP: false }) Inserts `text` to the focused element. -### `webFrame.executeJavaScript(code[, userGesture])` +### `webFrame.executeJavaScript(code[, userGesture, callback])` * `code` String * `userGesture` Boolean (optional) - Default is `false`. +* `callback` Function (optional) - Called after script has been executed. + * `result` Any Evaluates `code` in page.