LibDevTools+LibWebView: Port DevTools to String

This commit is contained in:
Timothy Flynn 2025-02-19 09:28:02 -05:00 committed by Tim Flynn
parent 9879ac0893
commit 4791ec35bf
Notes: github-actions[bot] 2025-02-21 00:29:06 +00:00
35 changed files with 99 additions and 98 deletions

View file

@ -85,7 +85,7 @@ ErrorOr<void> DevToolsServer::on_new_client()
void DevToolsServer::on_message_received(JsonObject const& message)
{
auto to = message.get_byte_string("to"sv);
auto to = message.get_string("to"sv);
if (!to.has_value()) {
m_root_actor->send_missing_parameter_error("to"sv);
return;
@ -97,7 +97,7 @@ void DevToolsServer::on_message_received(JsonObject const& message)
return;
}
auto type = message.get_byte_string("type"sv);
auto type = message.get_string("type"sv);
if (!type.has_value()) {
actor->value->send_missing_parameter_error("type"sv);
return;