mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
Add ConvertFromCef to else statement so it's only called when not using a function
This commit is contained in:
@@ -28,11 +28,14 @@ namespace CefSharp
|
||||
|
||||
for (std::vector<CefRefPtr<CefV8Value>>::size_type i = 0; i != arguments.size(); i++)
|
||||
{
|
||||
parameter[i] = TypeUtils::ConvertFromCef(arguments[i]);
|
||||
if (arguments[i]->IsFunction())
|
||||
{
|
||||
parameter[i] = _callbackRegistry->CreateWrapper(CefV8Context::GetCurrentContext(), arguments[i]);
|
||||
}
|
||||
else
|
||||
{
|
||||
parameter[i] = TypeUtils::ConvertFromCef(arguments[i]);
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user