Skip to content

Commit

Permalink
LibWeb: Fix error page icon outside of serenity
Browse files Browse the repository at this point in the history
  • Loading branch information
cammo1123 authored and linusg committed Jan 18, 2023
1 parent 537fcaf commit ce1b7e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Base/res/html/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</head>
<body>
<header>
<img src="file:https:///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>
Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibWeb/Loader/FrameLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ce1b7e6

Please sign in to comment.