mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
parent
3fe7b880ae
commit
ca2aa3a407
1 changed files with 8 additions and 1 deletions
|
|
@ -343,7 +343,14 @@ JSObject* CGUI::TickObjects(const ScriptRequest& rq, Script::StructuredClone ini
|
|||
if (m_LoadModuleResult.has_value() && m_LoadModuleResult->iterator->IsDone())
|
||||
{
|
||||
JS::RootedValue hotloadData{rq.cx, GetHotloadData(rq)};
|
||||
m_LoadModuleResult->moduleNamespace = m_LoadModuleResult->iterator->Get();
|
||||
try
|
||||
{
|
||||
m_LoadModuleResult->moduleNamespace = m_LoadModuleResult->iterator->Get();
|
||||
}
|
||||
catch(const std::exception& e)
|
||||
{
|
||||
LOGERROR("%s", e.what());
|
||||
}
|
||||
++m_LoadModuleResult->iterator;
|
||||
sendingPromise = CallPageInit(rq, initData, hotloadData, scriptName);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue