Skip to content

Commit

Permalink
fix crash in file chatPreviewDocVC
Browse files Browse the repository at this point in the history
  • Loading branch information
Arief Nur Putranto committed Aug 29, 2023
1 parent 82d3395 commit d33fa6f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ class ChatPreviewDocVC: UIViewController, UIWebViewDelegate, WKNavigationDelegat
}

deinit{
self.webView.removeObserver(self, forKeyPath: "estimatedProgress")
//self.webView.removeObserver(self, forKeyPath: "estimatedProgress")
}
// MARK: - UI Lifecycle
override func viewDidLoad() {
super.viewDidLoad()
self.webView.navigationDelegate = self
self.webView.addObserver(self, forKeyPath: "estimatedProgress", options: NSKeyValueObservingOptions.new, context: nil)
// self.webView.addObserver(self, forKeyPath: "estimatedProgress", options: NSKeyValueObservingOptions.new, context: nil)
if !self.accountLinking {
let shareButton = UIBarButtonItem(title: "Share", style: .plain, target: self, action: #selector(ChatPreviewDocVC.share))
shareButton.tintColor = UIColor.white
Expand Down

0 comments on commit d33fa6f

Please sign in to comment.