Skip to content

Commit

Permalink
Clear cache and add user-agent on WebView2 changelog request (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptdev authored Jul 13, 2022
1 parent f6797c4 commit be24152
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AutoUpdater.NET/UpdateForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ private void WebView_CoreWebView2InitializationCompleted(object sender, CoreWebV
webView2.CoreWebView2.Settings.AreDefaultContextMenusEnabled = false;
webView2.CoreWebView2.Settings.IsStatusBarEnabled = false;
webView2.CoreWebView2.Settings.AreDevToolsEnabled = Debugger.IsAttached;
webView2.CoreWebView2.Settings.UserAgent = AutoUpdater.GetUserAgent();
webView2.CoreWebView2.Profile.ClearBrowsingDataAsync();
webView2.Show();
webView2.BringToFront();
if (null != AutoUpdater.BasicAuthChangeLog)
Expand Down

0 comments on commit be24152

Please sign in to comment.