Emscripten: Immediately mark presentable if no url is specified
Also log failed requests.
This commit is contained in:
parent
7365d7e11c
commit
98cf5b302d
@ -496,6 +496,10 @@ int Main(int argc, char *argv[])
|
||||
Platform::MarkPresentable();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Platform::MarkPresentable();
|
||||
}
|
||||
|
||||
MainLoop();
|
||||
};
|
||||
|
@ -146,6 +146,10 @@ namespace http
|
||||
{
|
||||
std::cerr << *error << std::endl;
|
||||
}
|
||||
else if (statusCode >= 400)
|
||||
{
|
||||
std::cerr << "status code " << statusCode << " for request to " << uri << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
const char *StatusText(int ret)
|
||||
|
Loading…
Reference in New Issue
Block a user