fix: clear canvas error banner on load
parent
bcc5891e03
commit
0197fb35fe
|
|
@ -318,6 +318,10 @@ private final class ScreenNavigationDelegate: NSObject, WKNavigationDelegate {
|
||||||
self.controller?.errorText = error.localizedDescription
|
self.controller?.errorText = error.localizedDescription
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func webView(_: WKWebView, didFinish _: WKNavigation?) {
|
||||||
|
self.controller?.errorText = nil
|
||||||
|
}
|
||||||
|
|
||||||
func webView(_: WKWebView, didFail _: WKNavigation?, withError error: any Error) {
|
func webView(_: WKWebView, didFail _: WKNavigation?, withError error: any Error) {
|
||||||
self.controller?.errorText = error.localizedDescription
|
self.controller?.errorText = error.localizedDescription
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue