File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " tauri " : " patch:breaking"
3
+ ---
4
+
5
+ Changed ` WebviewWindow::navigate ` and ` Webview::navigate ` method signature to return a ` Result `
Original file line number Diff line number Diff line change @@ -1084,8 +1084,8 @@ fn main() {
1084
1084
}
1085
1085
1086
1086
/// Navigates the webview to the defined url.
1087
- pub fn navigate ( & mut self , url : Url ) {
1088
- self . webview . dispatcher . navigate ( url) . unwrap ( ) ;
1087
+ pub fn navigate ( & mut self , url : Url ) -> crate :: Result < ( ) > {
1088
+ self . webview . dispatcher . navigate ( url) . map_err ( Into :: into )
1089
1089
}
1090
1090
1091
1091
fn is_local_url ( & self , current_url : & Url ) -> bool {
Original file line number Diff line number Diff line change @@ -1665,8 +1665,8 @@ impl<R: Runtime> WebviewWindow<R> {
1665
1665
}
1666
1666
1667
1667
/// Navigates the webview to the defined url.
1668
- pub fn navigate ( & mut self , url : Url ) {
1669
- self . webview . navigate ( url) ;
1668
+ pub fn navigate ( & mut self , url : Url ) -> crate :: Result < ( ) > {
1669
+ self . webview . navigate ( url)
1670
1670
}
1671
1671
1672
1672
/// Handles this window receiving an [`crate::webview::InvokeRequest`].
You can’t perform that action at this time.
0 commit comments