Browse Source

Add missing return type on executeJavaScript

Samuel Attard 8 years ago
parent
commit
b62f1fd022
1 changed files with 3 additions and 0 deletions
  1. 3 0
      docs/api/web-frame.md

+ 3 - 0
docs/api/web-frame.md

@@ -136,6 +136,9 @@ Inserts `text` to the focused element.
 * `callback` Function (optional) - Called after script has been executed.
   * `result` Any
 
+Returns `Promise` - A promise that resolves with the result of the executed code
+or is rejected if the result of the code is a rejected promise.
+
 Evaluates `code` in page.
 
 In the browser window some HTML APIs like `requestFullScreen` can only be