mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
update example
This commit is contained in:
@@ -92,7 +92,11 @@ pub fn run_app<R: Runtime, F: FnOnce(&App<R>) + Send + 'static>(
|
||||
let builder = tauri::WebviewWindowBuilder::new(
|
||||
&app_,
|
||||
format!("new-{number}"),
|
||||
tauri::WebviewUrl::External("about:blank".parse().unwrap()),
|
||||
tauri::WebviewUrl::External(if cfg!(feature = "cef") {
|
||||
url.clone()
|
||||
} else {
|
||||
"about:blank".parse().unwrap()
|
||||
}),
|
||||
)
|
||||
.window_features(features)
|
||||
.on_document_title_changed(|window, title| {
|
||||
|
||||
Reference in New Issue
Block a user