We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 818d49c commit 7f0ec42Copy full SHA for 7f0ec42
WebViewJavascriptBridge_iOS/WebViewJavascriptBridge_iOS.m
@@ -38,7 +38,6 @@ - (void)webViewDidFinishLoad:(UIWebView *)webView {
38
self.numRequestsLoading--;
39
40
if (self.numRequestsLoading == 0 && ![[webView stringByEvaluatingJavaScriptFromString:@"typeof WebViewJavascriptBridge == 'object'"] isEqualToString:@"true"]) {
41
- if (![[webView stringByEvaluatingJavaScriptFromString:@"typeof WebViewJavascriptBridge == 'object'"] isEqualToString:@"true"]) {
42
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"WebViewJavascriptBridge.js" ofType:@"txt"];
43
NSString *js = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil];
44
[webView stringByEvaluatingJavaScriptFromString:js];
0 commit comments