Skip to content

Commit

Permalink
Fixes crashes:
Browse files Browse the repository at this point in the history
* Core: WebViewController.showErrorNow() + 844
* Core: closure #1 in WebViewController.urlDidChange() + 240
  • Loading branch information
brindy committed Jun 20, 2018
1 parent c7d7156 commit a152791
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Core/WebViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ open class WebViewController: UIViewController {
}

public func tearDown() {
guard let webView = webView else { return }
self.webView = nil
webView.removeObserver(self, forKeyPath: #keyPath(WKWebView.estimatedProgress))
webView.removeObserver(self, forKeyPath: #keyPath(WKWebView.hasOnlySecureContent))
webView.removeObserver(self, forKeyPath: #keyPath(WKWebView.url))
Expand Down

0 comments on commit a152791

Please sign in to comment.