浏览代码

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

Jamie Birch 4 年前
父节点
当前提交
75ec36fefc
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      ios/RNCWebView.m

+ 1
- 1
ios/RNCWebView.m 查看文件

@@ -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