 import SnapKit
 import CocoaLumberjack
 
-class WebViewController: UIViewController, WKNavigationDelegate {
+class WebViewController: UIViewController, WKNavigationDelegate, WKUIDelegate {
     var URLToOpen: URL
 
     let blurBackgroundView = UIVisualEffectView(effect:nil)


    func webViewWebContentProcessDidTerminate(_ webView: WKWebView) {
        DDLogError("[WebVC] \(#function)")
    }

    // MARK: KVO

        webView.scrollView.indicatorStyle = .default
        webView.isOpaque = false
        webView.navigationDelegate = self
        webView.uiDelegate = self
        webView.addObserver(self, forKeyPath: "estimatedProgress", options: .new, context: nil)

        statusBarSeparatorView.backgroundColor = UIColor.black
