mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
Catch and return Exception for TryCallMethod, TryGetProperty, TrySetProperty methods, passed back to the browsersubprocess though currently not displayed in the UI
This commit is contained in:
@@ -25,7 +25,8 @@ namespace CefSharp
|
||||
auto browserProxy = CefAppWrapper::Instance->CreateBrowserProxy();
|
||||
|
||||
Object^ result;
|
||||
auto success = browserProxy->CallMethod(_ownerId, _javascriptMethod->JavascriptName, parameters, result);
|
||||
String^ exception;
|
||||
auto success = browserProxy->CallMethod(_ownerId, _javascriptMethod->JavascriptName, parameters, result, exception);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user