Skip to content

Commit

Permalink
fix: not handling result on eval
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Mar 23, 2024
1 parent a1a4277 commit 1bade18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src-tauri/src/app/webview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ async fn show_webview(url: Url, window: &Arc<Mutex<tauri::Window>>) -> Result<St
}?;

// Redirect the download view to the download page
download_view.eval(&format!("window.location.href = '{}';", url.to_string()));
download_view.eval(&format!("window.location.href = '{}';", url.to_string()))
.context("Failed to redirect download view to download page")?;

// Show and maximize the download view
download_view.show()
Expand Down

0 comments on commit 1bade18

Please sign in to comment.