From bd400a006d4f7b01b2e156ed38fdebd7a111125f Mon Sep 17 00:00:00 2001 From: James Magahern Date: Thu, 7 Jan 2021 12:47:25 -0800 Subject: [PATCH] OK button in error clears error status UI --- App/Browser View/BrowserViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/App/Browser View/BrowserViewController.swift b/App/Browser View/BrowserViewController.swift index eb23aa7..0d5d87d 100644 --- a/App/Browser View/BrowserViewController.swift +++ b/App/Browser View/BrowserViewController.swift @@ -169,6 +169,9 @@ class BrowserViewController: UIViewController, WKNavigationDelegate, WKUIDelegat alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { _ in alert.dismiss(animated: true, completion: nil) + + // Clears out the error state + toolbarController.urlBar.loadProgress = .complete })) self.present(alert, animated: true, completion: nil)