1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2024-11-25 14:42:47 +01:00

Compare commits

...

2 Commits

Author SHA1 Message Date
9a6394d079
Release 1.25.3 2023-03-09 20:28:03 +01:00
88a55c8795
Work around NullReferenceException when browser frame load events have a null URL
Closes #354
2023-03-09 20:28:03 +01:00
2 changed files with 7 additions and 3 deletions

View File

@ -6,6 +6,6 @@
namespace TweetDuck {
internal static class Version {
public const string Tag = "1.25.2";
public const string Tag = "1.25.3";
}
}

View File

@ -59,11 +59,15 @@ private void OnLoadError(object? sender, LoadErrorEventArgs e) {
}
private void OnFrameLoadStart(object? sender, FrameLoadStartEventArgs e) {
base.OnFrameLoadStart(e.Url, e.Frame);
if (!string.IsNullOrEmpty(e.Url)) {
base.OnFrameLoadStart(e.Url, e.Frame);
}
}
private void OnFrameLoadEnd(object? sender, FrameLoadEndEventArgs e) {
base.OnFrameLoadEnd(e.Url, e.Frame);
if (!string.IsNullOrEmpty(e.Url)) {
base.OnFrameLoadEnd(e.Url, e.Frame);
}
}
}
}