I have received a URL from the user and am showing this page in webview.
When an invalid url is entered as follows, webview is showing an empty screen. I want to catch this error and expose the error page. How can I do it?
https://www.yahoo.co.jp밍낢ㄴㅇㄹㅁㄴㅇㄹ
let _ = WebviewWindowBuilder::new(&app_handle, "test", WebviewUrl::External(url.parse().unwrap()))
.decorations(false)
.resizable(false)
.on_page_load(move |window, payload| {
match payload.event() {
PageLoadEvent::Started => {}
PageLoadEvent::Finished => {
// on load
}
}
})
.build()
.unwrap();
Describe the bug
I have received a URL from the user and am showing this page in webview. When an invalid url is entered as follows, webview is showing an empty screen. I want to catch this error and expose the error page. How can I do it?
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response