We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e609acc commit 184219dCopy full SHA for 184219d
1 file changed
android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java
@@ -1079,7 +1079,7 @@ public void onPermissionRequest(final PermissionRequest request) {
1079
final int port = originUri.getPort();
1080
String origin = scheme + "://" + originUri.getHost();
1081
1082
- if (port > 0 && ((scheme == "http" && port != 80) || (scheme == "https" && port != 443))) {
+ if (port > 0 && (("http".equals(scheme) && port != 80) || ("https".equals(scheme) && port != 443))) {
1083
origin += ":" + port;
1084
}
1085
0 commit comments