We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent b0e2f6f commit be122f6Copy full SHA for be122f6
.changes/fix-user-agent-regression.md
@@ -0,0 +1,5 @@
1
+---
2
+"wry": patch
3
4
+
5
+Fix `with_user_agent` regression.
src/lib.rs
@@ -907,7 +907,7 @@ impl<'a> WebViewBuilder<'a> {
907
/// see https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes/archive?tabs=dotnetcsharp#10790-prerelease
908
pub fn with_user_agent(self, user_agent: impl Into<String>) -> Self {
909
self.and_then(|mut b| {
910
- b.attrs.html = Some(user_agent.into());
+ b.attrs.user_agent = Some(user_agent.into());
911
Ok(b)
912
})
913
}
0 commit comments