mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-07 17:34:06 +02:00
Minor tweak to load error handling
This commit is contained in:
parent
7e692460d8
commit
17e42df42d
@ -171,7 +171,7 @@ private void browser_LoadError(object sender, LoadErrorEventArgs e) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!e.FailedUrl.StartsWith("td://", StringComparison.Ordinal)) {
|
||||
if (!e.FailedUrl.StartsWith("td://resources/error/", StringComparison.Ordinal)) {
|
||||
string errorName = Enum.GetName(typeof(CefErrorCode), e.ErrorCode);
|
||||
string errorTitle = StringUtils.ConvertPascalCaseToScreamingSnakeCase(errorName ?? string.Empty);
|
||||
browser.Load("td://resources/error/error.html#" + Uri.EscapeDataString(errorTitle));
|
||||
|
Loading…
Reference in New Issue
Block a user