mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 02:08:11 +00: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)
|
void WebView::did_get_js_console_messages(i32, Vector<String>, Vector<String> messages)
|
||||||
{
|
{
|
||||||
|
if (!m_js_console_input_edit)
|
||||||
|
return;
|
||||||
for (auto& message : messages) {
|
for (auto& message : messages) {
|
||||||
m_js_console_output_edit->append(qstring_from_akstring(message).trimmed());
|
m_js_console_output_edit->append(qstring_from_akstring(message).trimmed());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue