Skip to content

Commit

Permalink
Fixed the path comperation.
Browse files Browse the repository at this point in the history
  • Loading branch information
devedbox committed Jan 16, 2018
1 parent abb6c24 commit f26dd3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigati
}

// URL actions for 404 and Errors:
if ([navigationAction.request.URL.absoluteString isEqualToString:kAX404NotFoundURLKey] || [navigationAction.request.URL.absoluteString isEqualToString:kAXNetworkErrorURLKey]) {
if ([[NSPredicate predicateWithFormat:@"SELF ENDSWITH[cd] %@ OR SELF ENDSWITH[cd] %@", kAX404NotFoundURLKey, kAXNetworkErrorURLKey] evaluateWithObject:components.URL.absoluteString]) {
// Reload the original URL.
[self loadURL:_URL];
}
Expand Down

0 comments on commit f26dd3d

Please sign in to comment.