mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
update executeJavaScript() API following Electron 0.36.10
This commit is contained in:
Vendored
+2
-2
@@ -636,7 +636,7 @@ declare module Electron {
|
||||
* Evaluates code in page.
|
||||
* @param code Code to evaluate.
|
||||
*/
|
||||
executeJavaScript(code: string): void;
|
||||
executeJavaScript(code: string, userGesture?: boolean, callback?: (result: any) => void): void;
|
||||
/**
|
||||
* Executes Edit -> Undo command in page.
|
||||
*/
|
||||
@@ -1592,7 +1592,7 @@ declare module Electron {
|
||||
* invoked by a gesture from the user. Setting `userGesture` to `true` will remove
|
||||
* this limitation.
|
||||
*/
|
||||
executeJavaScript(code: string, userGesture?: boolean): void;
|
||||
executeJavaScript(code: string, userGesture?: boolean, callback?: (result: any) => void): void;
|
||||
}
|
||||
|
||||
// Type definitions for main process
|
||||
|
||||
Reference in New Issue
Block a user