Change so that we don't crash if the article extractor completes and its delegate is deallocated. Issue #1566

This commit is contained in:
Maurice Parker 2020-01-08 11:22:11 -07:00
parent 078c5dbb5c
commit 96c781f468

View File

@ -48,12 +48,12 @@ class WebViewController: UIViewController {
var articleExtractorButtonState: ArticleExtractorButtonState = .off {
didSet {
delegate.webViewController(self, articleExtractorButtonStateDidUpdate: articleExtractorButtonState)
delegate?.webViewController(self, articleExtractorButtonStateDidUpdate: articleExtractorButtonState)
}
}
weak var coordinator: SceneCoordinator!
weak var delegate: WebViewControllerDelegate!
weak var delegate: WebViewControllerDelegate?
var article: Article? {
didSet {