mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
Ladybird: Load about:blank in new tabs
This makes the JS console usable in new tabs, without having to load something first.
This commit is contained in:
parent
e9135583bd
commit
0a8c86a9d9
1 changed files with 4 additions and 0 deletions
|
@ -97,6 +97,10 @@ Tab::Tab(BrowserWindow* window)
|
||||||
text_edit->setPlainText(source);
|
text_edit->setPlainText(source);
|
||||||
text_edit->show();
|
text_edit->show();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// FIXME: This is a hack to make the JS console usable in new windows.
|
||||||
|
// Something else should ensure that there's an initial about:blank document loaded in the view.
|
||||||
|
m_view->load("about:blank"sv);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Tab::focus_location_editor()
|
void Tab::focus_location_editor()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue