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