Merge pull request #4522 from deepak1556/async_execute_javascript_patch

webContents: provide responses for executeJavscript method
This commit is contained in:
Cheng Zhao 2016-02-26 21:17:47 +08:00
commit ebfc127628
10 changed files with 137 additions and 16 deletions

View file

@ -425,10 +425,12 @@ Returns a `String` representing the user agent for this web page.
Injects CSS into the current web page.
### `webContents.executeJavaScript(code[, userGesture])`
### `webContents.executeJavaScript(code[, userGesture, callback])`
* `code` String
* `userGesture` Boolean (optional)
* `callback` Function (optional) - Called after script has been executed.
* `result`
Evaluates `code` in page.