@exodus/react-native-webview 11.26.1-exodus.30 → 11.26.1-exodus.31
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/RNCWebView.m +6 -1
- package/package.json +1 -1
package/apple/RNCWebView.m
CHANGED
|
@@ -582,8 +582,13 @@ RCTAutoInsetsProtocol>
|
|
|
582
582
|
#endif
|
|
583
583
|
|
|
584
584
|
- (NSMutableDictionary<NSString *, id> *)baseEventWithScriptMessage:(WKScriptMessage *)message {
|
|
585
|
+
WKSecurityOrigin *securityOrigin = message.frameInfo.securityOrigin;
|
|
586
|
+
NSString *protocol = securityOrigin.protocol;
|
|
587
|
+
NSString *host = securityOrigin.host;
|
|
588
|
+
|
|
589
|
+
NSString *messageOriginURL = [NSString stringWithFormat:@"%@://%@", protocol, host];
|
|
590
|
+
|
|
585
591
|
NSMutableDictionary<NSString *, id> *event = [self baseEvent];
|
|
586
|
-
NSString *messageOriginURL = message.frameInfo.request.URL.absoluteString ?: @"";
|
|
587
592
|
event[@"url"] = messageOriginURL;
|
|
588
593
|
return event;
|
|
589
594
|
}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"Thibault Malbranche <malbranche.thibault@gmail.com>"
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "11.26.1-exodus.
|
|
12
|
+
"version": "11.26.1-exodus.31",
|
|
13
13
|
"homepage": "https://github.com/ExodusMovement/react-native-webview#readme",
|
|
14
14
|
"scripts": {
|
|
15
15
|
"android": "react-native run-android",
|