Skip to content

Commit 114419d

Browse files
author
Maura Winstanley
committed
update uuid
1 parent ebbf345 commit 114419d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

specs/APIReview_UAString.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ m_webView->add_NavigationStarting(
5252
5353
```c #
5454
webView2Control.NavigationStarting += SetUserAgent;
55+
5556
private 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)]
8182
interface ICoreWebView2Settings2 : ICoreWebView2Settings {
8283
/// `UserAgent` . Returns the User Agent. The default value is the
8384
/// default User Agent of the Edge browser.

0 commit comments

Comments
 (0)