Skip to content

Commit

Permalink
Add StellaLauncher/{Program.ProductVersion}
Browse files Browse the repository at this point in the history
  • Loading branch information
sefinek24 committed Jan 31, 2024
1 parent 7fcb3d8 commit 2969787
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Stella Mod Launcher/Forms/Other/WebView2Window.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ private void Gallery_Load(object sender, EventArgs e)

private async void InitWebView2()
{
CoreWebView2Environment coreWeb = await CoreWebView2Environment.CreateAsync(null, Program.AppData, new CoreWebView2EnvironmentOptions());
await webView21.EnsureCoreWebView2Async(coreWeb);

await webView21.EnsureCoreWebView2Async(await CoreWebView2Environment.CreateAsync(null, Program.AppData, new CoreWebView2EnvironmentOptions()));
webView21.CoreWebView2.Settings.UserAgent += $" StellaLauncher/{Program.ProductVersion}";
webView21.CoreWebView2.Navigate(Url);
}

Expand Down

0 comments on commit 2969787

Please sign in to comment.