This commit is contained in:
Ralph Wessel
2024-08-20 15:02:44 +01:00
parent 6790730f6f
commit f9014acebd
2 changed files with 5 additions and 2 deletions
@@ -18,7 +18,9 @@ using namespace speckle::interfac::browser::bridge;
bridge: The parent bridge object (provides access to bridge methods)
--------------------------------------------------------------------*/
GetCallResult::GetCallResult(BrowserBridge& bridge) : m_bridge{bridge},
JSFunction{"GetCallResult", [&](auto args) { return getResult(args); }} {
JSFunction{"GetCallResult", [&](auto args) {
return getResult(args);
}} {
} //GetCallResult::GetCallResult
@@ -70,7 +70,8 @@ namespace speckle::interfac::browser {
#ifdef ARCHICAD
try {
auto engine = getJSEngine();
return engine ? engine->ExecuteJS(code) : false;
auto result = engine ? engine->ExecuteJS(code) : false;
return result;
} catch(...) {
///TODO: Need to discuss the best course of action to notify of a failure
}