Parcourir la source

fix(iOS): Restore "name:HistoryShimName];" that was cut off.

Jamie Birch il y a 4 ans
Parent
révision
75ec36fefc
No account linked to committer's email address
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      ios/RNCWebView.m

+ 1
- 1
ios/RNCWebView.m Voir le fichier

@@ -168,7 +168,7 @@ static NSDictionary* customCertificatesForHost;
168 168
   wkWebViewConfig.userContentController = [WKUserContentController new];
169 169
 
170 170
   // Shim the HTML5 history API:
171
-  [wkWebViewConfig.userContentController addScriptMessageHandler:[[RNCWeakScriptMessageDelegate alloc] initWithDelegate:self]
171
+  [wkWebViewConfig.userContentController addScriptMessageHandler:[[RNCWeakScriptMessageDelegate alloc] initWithDelegate:self] name:HistoryShimName];
172 172
 
173 173
   [self resetupScripts:wkWebViewConfig];
174 174