kumo01GitHub commented on code in PR #1112:
URL:
https://github.com/apache/cordova-plugin-inappbrowser/pull/1112#discussion_r2780709081
##########
src/ios/CDVWKInAppBrowser.m:
##########
@@ -431,6 +431,21 @@ - (BOOL)isValidCallbackId:(NSString *)callbackId
return NO;
}
+- (BOOL)isAllowedScheme:(NSString*)scheme
+{
+ NSString* allowedSchemesPreference = [self.commandDelegate.settings
objectForKey:@"AllowedSchemes"];
+ if (allowedSchemesPreference == nil || [allowedSchemesPreference
isEqualToString:@""]) {
+ // Preference missing.
+ return NO;
+ }
+ for (NSString* allowedScheme in [allowedSchemesPreference
componentsSeparatedByString:@","]) {
Review Comment:
I fixed it following the other lines.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]