Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed May 30, 2024
1 parent 572a8fe commit 22e2d38
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/tauri/src/webview/webview_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ use tauri::{
tauri::Builder::default()
.setup(|app| {
let webview_window = WebviewWindowBuilder::new("core", WebviewUrl::App("index.html".into()))
let handle = app.handle();
let webview_window = WebviewWindowBuilder::new(handle, "core", WebviewUrl::App("index.html".into()))
.on_download(|webview, event| {
match event {
DownloadEvent::Requested { url, destination } => {
Expand All @@ -296,7 +297,8 @@ tauri::Builder::default()
}
// let the download start
true
}).build()?;
})
.build()?;
Ok(())
});
Expand Down

0 comments on commit 22e2d38

Please sign in to comment.