forked from organicmaps/organicmaps
[iOS] fix bug in which "no internet" error appears on backward navigation in catalog
https://jira.mail.ru/browse/MAPSME-11619
This commit is contained in:
parent
6fa24d9a8f
commit
779d153c9f
1 changed files with 4 additions and 1 deletions
|
@ -191,9 +191,12 @@ final class CatalogWebViewController: WebViewController {
|
|||
}
|
||||
|
||||
override func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error) {
|
||||
loadingIndicator.stopAnimating()
|
||||
if let error = error as NSError?, error.code == NSURLErrorCancelled {
|
||||
return
|
||||
}
|
||||
Statistics.logEvent("Bookmarks_Downloaded_Catalogue_error",
|
||||
withParameters: [kStatError : kStatUnknown])
|
||||
loadingIndicator.stopAnimating()
|
||||
noInternetView.isHidden = false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue