Don't show error if url bar is first responder
This commit is contained in:
@@ -144,6 +144,7 @@ class BrowserViewController: UIViewController, WKNavigationDelegate,
|
||||
// Error button
|
||||
toolbarController.urlBar.errorButton.addAction(UIAction(handler: { [unowned self] _ in
|
||||
let alert = UIAlertController(title: "Error", message: self.loadError?.localizedDescription, preferredStyle: .actionSheet)
|
||||
alert.popoverPresentationController?.sourceView = self.toolbarController.urlBar.errorButton
|
||||
|
||||
alert.addAction(UIAlertAction(title: "Reload", style: .destructive, handler: { _ in
|
||||
self.webView.reload()
|
||||
|
||||
Reference in New Issue
Block a user