|
@@ -188,6 +188,12 @@ static NSDictionary* customCertificatesForHost;
|
188
|
188
|
[wkWebViewConfig.userContentController addUserScript:script];
|
189
|
189
|
|
190
|
190
|
if (_messagingEnabled) {
|
|
191
|
+ for (NSString *handler in _messageHandlers)
|
|
192
|
+ {
|
|
193
|
+ [wkWebViewConfig.userContentController addScriptMessageHandler:[[RNCWeakScriptMessageDelegate alloc] initWithDelegate:self]
|
|
194
|
+ name:handler];
|
|
195
|
+ }
|
|
196
|
+
|
191
|
197
|
[wkWebViewConfig.userContentController addScriptMessageHandler:[[RNCWeakScriptMessageDelegate alloc] initWithDelegate:self]
|
192
|
198
|
name:MessageHandlerName];
|
193
|
199
|
|
|
@@ -942,7 +948,7 @@ static NSDictionary* customCertificatesForHost;
|
942
|
948
|
_onHttpError(event);
|
943
|
949
|
}
|
944
|
950
|
}
|
945
|
|
- }
|
|
951
|
+ }
|
946
|
952
|
|
947
|
953
|
decisionHandler(WKNavigationResponsePolicyAllow);
|
948
|
954
|
}
|