mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 07:22:21 +00:00
LibDevTools+LibWebView: Port DevTools to String
This commit is contained in:
parent
9879ac0893
commit
4791ec35bf
Notes:
github-actions[bot]
2025-02-21 00:29:06 +00:00
Author: https://github.com/trflynn89
Commit: 4791ec35bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3631
Reviewed-by: https://github.com/awesomekling ✅
35 changed files with 99 additions and 98 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue