Skip to content

Commit

Permalink
move builder usage
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Nov 5, 2024
1 parent b5523ce commit ef1c10e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/tauri-runtime/src/webview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ impl From<&WindowConfig> for WebviewAttributes {
.focused(config.focus)
.zoom_hotkeys_enabled(config.zoom_hotkeys_enabled)
.use_https_scheme(config.use_https_scheme)
.browser_extensions_enabled(config.browser_extensions_enabled);
.browser_extensions_enabled(config.browser_extensions_enabled)
.devtools(config.devtools);
#[cfg(any(not(target_os = "macos"), feature = "macos-private-api"))]
{
builder = builder.transparent(config.transparent);
Expand All @@ -242,9 +243,6 @@ impl From<&WindowConfig> for WebviewAttributes {
if let Some(url) = &config.proxy_url {
builder = builder.proxy_url(url.to_owned());
}
builder = builder.zoom_hotkeys_enabled(config.zoom_hotkeys_enabled);
builder = builder.browser_extensions_enabled(config.browser_extensions_enabled);
builder = builder.devtools(config.devtools);
builder
}
}
Expand Down

0 comments on commit ef1c10e

Please sign in to comment.