@exodus/react-native-webview 11.26.1-exodus.37 → 11.26.1-exodus.38
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.
|
@@ -1079,7 +1079,7 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
|
|
|
1079
1079
|
final int port = originUri.getPort();
|
|
1080
1080
|
String origin = scheme + "://" + originUri.getHost();
|
|
1081
1081
|
|
|
1082
|
-
if (port > 0 && ((
|
|
1082
|
+
if (port > 0 && (("http".equals(scheme) && port != 80) || ("https".equals(scheme) && port != 443))) {
|
|
1083
1083
|
origin += ":" + port;
|
|
1084
1084
|
}
|
|
1085
1085
|
|
|
@@ -253,9 +253,9 @@ shouldStartLoadForRequest:(NSMutableDictionary<NSString *, id> *)request
|
|
|
253
253
|
_shouldStartLoad = YES;
|
|
254
254
|
request[@"lockIdentifier"] = @(_shouldStartLoadLock.condition);
|
|
255
255
|
callback(request);
|
|
256
|
-
|
|
257
|
-
// Block the main thread for a maximum of
|
|
258
|
-
if ([_shouldStartLoadLock lockWhenCondition:0 beforeDate:[NSDate dateWithTimeIntervalSinceNow:.
|
|
256
|
+
|
|
257
|
+
// Block the main thread for a maximum of 500ms until the JS thread returns
|
|
258
|
+
if ([_shouldStartLoadLock lockWhenCondition:0 beforeDate:[NSDate dateWithTimeIntervalSinceNow:.50]]) {
|
|
259
259
|
BOOL returnValue = _shouldStartLoad;
|
|
260
260
|
[_shouldStartLoadLock unlock];
|
|
261
261
|
_shouldStartLoadLock = nil;
|
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.38",
|
|
13
13
|
"homepage": "https://github.com/ExodusMovement/react-native-webview#readme",
|
|
14
14
|
"scripts": {
|
|
15
15
|
"android": "react-native run-android",
|