fix bugfix,exec Js callback message needs send to browser process, not render process
This commit is contained in:
parent
1b4fac0355
commit
63da92c94e
@ -196,7 +196,7 @@ bool CefJSBridge::ExecuteJSFunc(const CefString& function_name, const CefString&
|
|||||||
CefRefPtr<CefListValue> args = message->GetArgumentList();
|
CefRefPtr<CefListValue> args = message->GetArgumentList();
|
||||||
args->SetString(0, json_string->GetStringValue());
|
args->SetString(0, json_string->GetStringValue());
|
||||||
args->SetInt(1, cpp_callback_id);
|
args->SetInt(1, cpp_callback_id);
|
||||||
context->GetBrowser()->SendProcessMessage(PID_RENDERER, message);
|
context->GetBrowser()->SendProcessMessage(PID_BROWSER, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
context->Exit();
|
context->Exit();
|
||||||
|
Loading…
Reference in New Issue
Block a user