Skip to content

Commit be122f6

Browse files
authoredOct 21, 2024··
fix: user agent regression, closes #1396 (#1397)
regression from #1384
1 parent b0e2f6f commit be122f6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.changes/fix-user-agent-regression.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wry": patch
3+
---
4+
5+
Fix `with_user_agent` regression.

‎src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ impl<'a> WebViewBuilder<'a> {
907907
/// see https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes/archive?tabs=dotnetcsharp#10790-prerelease
908908
pub fn with_user_agent(self, user_agent: impl Into<String>) -> Self {
909909
self.and_then(|mut b| {
910-
b.attrs.html = Some(user_agent.into());
910+
b.attrs.user_agent = Some(user_agent.into());
911911
Ok(b)
912912
})
913913
}

0 commit comments

Comments
 (0)
Please sign in to comment.