Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit c270663

Browse files
committed
hide OnLoadError message from end users
1 parent 7b7f828 commit c270663

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

appshell/client_handler.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,11 @@ void ClientHandler::OnLoadError(CefRefPtr<CefBrowser> browser,
165165

166166
// Display a load error message.
167167
std::stringstream ss;
168-
ss << "<html><body><h2>Failed to load URL " << std::string(failedUrl) <<
168+
169+
ss << "<html><body style='background: #3c3f41'>" <<
170+
"<!--<h2>Failed to load URL " << std::string(failedUrl) <<
169171
" with error " << std::string(errorText) << " (" << errorCode <<
170-
").</h2></body></html>";
172+
").</h2>--></body></html>";
171173
frame->LoadString(ss.str(), failedUrl);
172174
}
173175

0 commit comments

Comments
 (0)