File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -879,6 +879,11 @@ - (void)webView:(WKWebView*)theWebView didFailNavigation:(WKNavigation*)navigati
879879 NSLog (@" %@ " , [errorUrl absoluteString ]);
880880 [theWebView loadRequest: [NSURLRequest requestWithURL: errorUrl]];
881881 }
882+ #ifdef DEBUG
883+ UIAlertController *alertController = [UIAlertController alertControllerWithTitle: [[NSBundle mainBundle ] objectForInfoDictionaryKey: @" CFBundleDisplayName" ] message: message preferredStyle: UIAlertControllerStyleAlert];
884+ [alertController addAction: [UIAlertAction actionWithTitle: NSLocalizedString(@" OK" , nil ) style: UIAlertActionStyleDefault handler: nil ]];
885+ [vc presentViewController: alertController animated: YES completion: nil ];
886+ #endif
882887}
883888
884889- (void )webViewWebContentProcessDidTerminate : (WKWebView *)webView
You can’t perform that action at this time.
0 commit comments