mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
Ladybird: Don't try to append to the JS console before it's instantiated
This commit is contained in:
parent
45c6a8c479
commit
73c15ef56d
1 changed files with 2 additions and 0 deletions
|
@ -746,6 +746,8 @@ void WebView::did_output_js_console_message(i32 message_index)
|
|||
|
||||
void WebView::did_get_js_console_messages(i32, Vector<String>, Vector<String> messages)
|
||||
{
|
||||
if (!m_js_console_input_edit)
|
||||
return;
|
||||
for (auto& message : messages) {
|
||||
m_js_console_output_edit->append(qstring_from_akstring(message).trimmed());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue