File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,10 @@ - (NSString*)w3cConnectionTypeFor:(CDVReachability*)reachability
8484 } else if ([currentRadioAccessTechnology isEqualToString: CTRadioAccessTechnologyLTE]) {
8585 return @" 4g" ;
8686 }
87- #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_14_1
87+ #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_14_1
8888 else if (@available (iOS 14.1 , *)) {
89- if ([currentRadioAccessTechnology isEqualToString: CTRadioAccessTechnologyNRNSA]) {
90- return @" 5g" ;
91- } else if ([currentRadioAccessTechnology isEqualToString: CTRadioAccessTechnologyNR]) {
89+ if ([currentRadioAccessTechnology isEqualToString: CTRadioAccessTechnologyNRNSA] ||
90+ [currentRadioAccessTechnology isEqualToString: CTRadioAccessTechnologyNR]) {
9291 return @" 5g" ;
9392 }
9493 }
@@ -109,7 +108,6 @@ - (NSString*)w3cConnectionTypeFor:(CDVReachability*)reachability
109108 }
110109 default :
111110 return @" unknown" ;
112- }
113111}
114112
115113- (BOOL )isCellularConnection : (NSString *)theConnectionType
You can’t perform that action at this time.
0 commit comments