Emscripten: Immediately mark presentable if no url is specified

Also log failed requests.
This commit is contained in:
Tamás Bálint Misius 2023-08-23 15:27:27 +02:00
parent 7365d7e11c
commit 98cf5b302d
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2
2 changed files with 8 additions and 0 deletions

View File

@ -496,6 +496,10 @@ int Main(int argc, char *argv[])
Platform::MarkPresentable();
}
}
else
{
Platform::MarkPresentable();
}
MainLoop();
};

View File

@ -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)