1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:47:45 +00:00

Ladybird+LibWebView: Move console history tracking to ConsoleClient

This will allow other chromes to make use of history in their console
implementations.
This commit is contained in:
Timothy Flynn 2023-08-30 08:45:26 -04:00 committed by Andrew Kaster
parent ed315dd950
commit 204a6f9241
6 changed files with 69 additions and 34 deletions

View file

@ -141,7 +141,7 @@ static constexpr CGFloat const WINDOW_HEIGHT = 600;
auto script = Ladybird::ns_string_to_string(ns_script);
if (!script.bytes_as_string_view().is_whitespace()) {
m_console_client->execute(script);
m_console_client->execute(move(script));
[text_view setString:@""];
}