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

Browser: Use "about:blank" as the default home page

This can be overridden in Browser.ini, but if there's no value there,
we now use "about:blank"
This commit is contained in:
Andreas Kling 2020-05-10 11:18:47 +02:00
parent fe0de26277
commit 5fcd25e8f6
2 changed files with 13 additions and 8 deletions

View file

@ -59,7 +59,7 @@
namespace Browser {
static const char* home_url = "file:///home/anon/www/welcome.html";
extern String g_home_url;
Tab::Tab()
{
@ -88,7 +88,7 @@ Tab::Tab()
toolbar.add_action(*m_go_forward_action);
toolbar.add_action(GUI::CommonActions::make_go_home_action([this](auto&) {
m_html_widget->load(home_url);
m_html_widget->load(g_home_url);
}));
toolbar.add_action(GUI::CommonActions::make_reload_action([this](auto&) {