diff --git a/SpeckleLib/Speckle/Interface/Browser/Bridge/Functions/GetCallResult.cpp b/SpeckleLib/Speckle/Interface/Browser/Bridge/Functions/GetCallResult.cpp index aa038d3..99070c7 100644 --- a/SpeckleLib/Speckle/Interface/Browser/Bridge/Functions/GetCallResult.cpp +++ b/SpeckleLib/Speckle/Interface/Browser/Bridge/Functions/GetCallResult.cpp @@ -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 diff --git a/SpeckleLib/Speckle/Interface/Browser/JSPortal.h b/SpeckleLib/Speckle/Interface/Browser/JSPortal.h index e2506af..01fc77d 100644 --- a/SpeckleLib/Speckle/Interface/Browser/JSPortal.h +++ b/SpeckleLib/Speckle/Interface/Browser/JSPortal.h @@ -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 }