fix: clear canvas error banner on load

main
Peter Steinberger 2025-12-21 03:14:08 +01:00
parent bcc5891e03
commit 0197fb35fe
1 changed files with 4 additions and 0 deletions

View File

@ -318,6 +318,10 @@ private final class ScreenNavigationDelegate: NSObject, WKNavigationDelegate {
self.controller?.errorText = error.localizedDescription
}
func webView(_: WKWebView, didFinish _: WKNavigation?) {
self.controller?.errorText = nil
}
func webView(_: WKWebView, didFail _: WKNavigation?, withError error: any Error) {
self.controller?.errorText = error.localizedDescription
}