@javascriptcommon/react-native-webview 13.12.17 → 13.12.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apple/RNCWebViewImpl.m +2 -2
- package/package.json +1 -1
package/apple/RNCWebViewImpl.m
CHANGED
|
@@ -502,7 +502,7 @@ RCTAutoInsetsProtocol>
|
|
|
502
502
|
wkWebViewConfig.applicationNameForUserAgent = [NSString stringWithFormat:@"%@ %@", wkWebViewConfig.applicationNameForUserAgent, _applicationNameForUserAgent];
|
|
503
503
|
}
|
|
504
504
|
|
|
505
|
-
NSURL *jsonFileURL = [[NSBundle mainBundle] URLForResource:@"
|
|
505
|
+
NSURL *jsonFileURL = [[NSBundle mainBundle] URLForResource:@"filteringRules" withExtension:@"json"];
|
|
506
506
|
|
|
507
507
|
if (jsonFileURL) {
|
|
508
508
|
NSError *error = nil;
|
|
@@ -514,7 +514,7 @@ RCTAutoInsetsProtocol>
|
|
|
514
514
|
WKContentRuleListStore *store = [WKContentRuleListStore defaultStore];
|
|
515
515
|
|
|
516
516
|
if (store) {
|
|
517
|
-
[store compileContentRuleListForIdentifier:@"rules-
|
|
517
|
+
[store compileContentRuleListForIdentifier:@"filtering-rules-id"
|
|
518
518
|
encodedContentRuleList:jsonRules
|
|
519
519
|
completionHandler:^(WKContentRuleList * _Nullable contentRuleList, NSError * _Nullable error) {
|
|
520
520
|
if (contentRuleList && wkWebViewConfig.userContentController) {
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"Thibault Malbranche <malbranche.thibault@gmail.com>"
|
|
11
11
|
],
|
|
12
12
|
"license": "MIT",
|
|
13
|
-
"version": "13.12.
|
|
13
|
+
"version": "13.12.18",
|
|
14
14
|
"homepage": "https://github.com/react-native-webview/react-native-webview#readme",
|
|
15
15
|
"scripts": {
|
|
16
16
|
"android": "react-native run-android",
|