Skip to content

Commit 339b664

Browse files
author
Maura Winstanley
committed
format
1 parent 54aad26 commit 339b664

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

specs/APIReview_UAString.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
Currently, a developer can pass the --user-agent browser args to the CreateWebView2EnvironmentWithDetails function.
44

5-
Ex. CreateWebView2EnvironmentWithDetails(nullptr, nullptr, L"--user-agent=\\"myUA\\"", ...);
6-
7-
For more info about the ‘--user-agent’ flag visit: https://peter.sh/experiments/chromium-command-line-switches/#user-agent.
5+
Ex. CreateWebView2EnvironmentWithDetails(nullptr, nullptr, L"--user-agent=\\"myUA\\"", ...);
6+
7+
For more info about the ‘--user-agent’ flag visit: https://peter.sh/experiments/chromium-command-line-switches/#user-agent.
88

99
However, there are a couple limitations to this workaround-- it is not an API that is easy to use or discover, you cannot modify a command line switch at runtime, and you cannot change the User Agent per WebView. In this document we describe the new API. We'd appreciate your feedback.
1010

0 commit comments

Comments
 (0)