|
@@ -795,12 +795,11 @@ static NSURLCredential* clientAuthenticationCredential;
|
795
|
795
|
thenCall: (void (^)(NSString*)) callback
|
796
|
796
|
{
|
797
|
797
|
[self.webView evaluateJavaScript: js completionHandler: ^(id result, NSError *error) {
|
798
|
|
- if (error == nil) {
|
799
|
|
- if (callback != nil) {
|
800
|
|
- callback([NSString stringWithFormat:@"%@", result]);
|
801
|
|
- }
|
802
|
|
- } else {
|
803
|
|
- RCTLogError(@"Error evaluating injectedJavaScript: This is possibly due to an unsupported return type. Try adding true to the end of your injectedJavaScript string.");
|
|
798
|
+ if (callback != nil) {
|
|
799
|
+ callback([NSString stringWithFormat:@"%@", result]);
|
|
800
|
+ }
|
|
801
|
+ if (error != nil) {
|
|
802
|
+ RCTLogWarn([NSString stringWithFormat:@"Error evaluating injectedJavaScript: This is possibly due to an unsupported return type. Try adding true to the end of your injectedJavaScript string. %@", error]);
|
804
|
803
|
}
|
805
|
804
|
}];
|
806
|
805
|
}
|