1
0
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:
chylex 2021-12-30 10:25:47 +01:00
parent 7e692460d8
commit 17e42df42d
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548

View File

@ -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));