Skip to content

Commit 54aad26

Browse files
author
Maura Winstanley
committed
update spacing
1 parent 68f2e34 commit 54aad26

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

specs/APIReview_UAString.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Background
22

33
Currently, a developer can pass the --user-agent browser args to the CreateWebView2EnvironmentWithDetails function.
4+
45
Ex. CreateWebView2EnvironmentWithDetails(nullptr, nullptr, L"--user-agent=\\"myUA\\"", ...);
6+
57
For more info about the ‘--user-agent’ flag visit: https://peter.sh/experiments/chromium-command-line-switches/#user-agent.
68

79
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.

0 commit comments

Comments
 (0)