Merge pull request #103 from bboot9001/bugfix

fix bugfix,exec Js callback message needs send to browser process, no…
This commit is contained in:
Dylan 2019-08-12 09:56:14 +08:00 committed by GitHub
commit f46eca3a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,7 +196,7 @@ bool CefJSBridge::ExecuteJSFunc(const CefString& function_name, const CefString&
CefRefPtr<CefListValue> args = message->GetArgumentList();
args->SetString(0, json_string->GetStringValue());
args->SetInt(1, cpp_callback_id);
context->GetBrowser()->SendProcessMessage(PID_RENDERER, message);
context->GetBrowser()->SendProcessMessage(PID_BROWSER, message);
}
context->Exit();