Skip to content

Commit

Permalink
fix(windows): Typo in autoplay browser arg (#1287)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars authored Jun 4, 2024
1 parent ee1af1a commit 6c7f45e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/windows-autoplay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
wry: patch
---

Fixed a regression causing autoplay on windows to require user gestures.
2 changes: 1 addition & 1 deletion src/webview2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ impl InnerWebView {
let mut arguments = String::from(default_args);

if attributes.autoplay {
arguments.push_str("--autoplay-policy=no-user-gesture-required");
arguments.push_str(" --autoplay-policy=no-user-gesture-required");
}

if let Some(proxy_setting) = &attributes.proxy_config {
Expand Down

0 comments on commit 6c7f45e

Please sign in to comment.