fix bugfix,exec Js callback message needs send to browser process, not render process

This commit is contained in:
wangpei 2019-08-11 19:49:39 +08:00
parent 1b4fac0355
commit 63da92c94e

View File

@ -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();