diff options
author | Cameron Youell <cameronyouell@gmail.com> | 2023-01-19 01:44:25 +1100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-18 14:46:13 +0000 |
commit | ce1b7e63c940f9eca4c013134a135a8a54cd177f (patch) | |
tree | 73dfa446c7edcbac84e22c5451e207387f949e9c | |
parent | 537fcaf59ee05f8dbdf22716a4b3c5879a6ef25e (diff) | |
download | serenity-ce1b7e63c940f9eca4c013134a135a8a54cd177f.zip |
LibWeb: Fix error page icon outside of serenity
-rw-r--r-- | Base/res/html/error.html | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/FrameLoader.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Base/res/html/error.html b/Base/res/html/error.html index c9d254c81d..c7fb60897f 100644 --- a/Base/res/html/error.html +++ b/Base/res/html/error.html @@ -13,7 +13,7 @@ </head> <body> <header> - <img src="file:///res/icons/32x32/msgbox-warning.png" alt="Warning" width="24" height="24"> + <img src="../icons/32x32/msgbox-warning.png" alt="Warning" width="24" height="24"> <h1>Failed to load @failed_url@</h1> </header> <p>Error: @error@</p> diff --git a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp index 377a4f875e..7e786ea94e 100644 --- a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp +++ b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp @@ -344,7 +344,7 @@ void FrameLoader::load_error_page(const AK::URL& failed_url, DeprecatedString co generator.set("failed_url", escape_html_entities(failed_url.to_deprecated_string())); generator.set("error", escape_html_entities(error)); generator.append(data); - load_html(generator.as_string_view(), failed_url); + load_html(generator.as_string_view(), s_error_page_url); }, [](auto& error, auto) { dbgln("Failed to load error page: {}", error); |