webContents.executeJavaScript should run code after page is loaded.

Fixes atom/atom#1805.
This commit is contained in:
Cheng Zhao 2014-06-16 09:10:41 +08:00
parent 5270eab512
commit a8cb839734
2 changed files with 11 additions and 1 deletions

View file

@ -186,7 +186,7 @@ mate::ObjectTemplateBuilder WebContents::GetObjectTemplateBuilder(
.SetMethod("getRoutingId", &WebContents::GetRoutingID)
.SetMethod("getProcessId", &WebContents::GetProcessID)
.SetMethod("isCrashed", &WebContents::IsCrashed)
.SetMethod("executeJavaScript", &WebContents::ExecuteJavaScript)
.SetMethod("_executeJavaScript", &WebContents::ExecuteJavaScript)
.SetMethod("_send", &WebContents::SendIPCMessage);
}