mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 11:47:35 +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:
parent
fe0de26277
commit
5fcd25e8f6
2 changed files with 13 additions and 8 deletions
|
@ -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&) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue