File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,11 +52,12 @@ m_webView->add_NavigationStarting(
5252
5353```c #
5454webView2Control.NavigationStarting += SetUserAgent;
55+
5556private void SetUserAgent(CoreWebView2 sender, CoreWebView2NavigationStartingEventArgs e)
5657{
5758 var settings = webView2Control.CoreWebView2.Settings;
5859 // Note: Oversimplified test. Need to support idn, case-insensitivity, etc.
59- if (new Uri(e.Uri).Host == "contoso .com")
60+ if (new Uri(e.Uri).Host == "fourthcoffee .com")
6061 {
6162 settings.UserAgent = GetMobileUserAgent();
6263 }
@@ -77,7 +78,7 @@ See [API Details](#api-details) section below for API reference.
7778
7879``` IDL
7980// This is the ICoreWebView2Settings interface.
80- [uuid(c79ba37e-9bd6-4b9e-b460-2ced163f231f ), object, pointer_default(unique)]
81+ [uuid(684cbeef-47ba-4d4a-99f4-976113f9f10a ), object, pointer_default(unique)]
8182interface ICoreWebView2Settings2 : ICoreWebView2Settings {
8283 /// `UserAgent` . Returns the User Agent. The default value is the
8384 /// default User Agent of the Edge browser.
You can’t perform that action at this time.
0 commit comments