Sfoglia il codice sorgente

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

Jamie Birch 6 anni fa
parent
commit
75ec36fefc
No account linked to committer's email address
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      ios/RNCWebView.m

+ 1
- 1
ios/RNCWebView.m Vedi File

168
   wkWebViewConfig.userContentController = [WKUserContentController new];
168
   wkWebViewConfig.userContentController = [WKUserContentController new];
169
 
169
 
170
   // Shim the HTML5 history API:
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
   [self resetupScripts:wkWebViewConfig];
173
   [self resetupScripts:wkWebViewConfig];
174
 
174