diff --git a/plugin/src/ios/CBTBrowserTab.m b/plugin/src/ios/CBTBrowserTab.m index 233ae18..d85ce4c 100644 --- a/plugin/src/ios/CBTBrowserTab.m +++ b/plugin/src/ios/CBTBrowserTab.m @@ -37,7 +37,7 @@ - (void)openUrl:(CDVInvokedUrlCommand *)command { } NSURL *url = [NSURL URLWithString:urlString]; - if ([SFSafariViewController class] != nil) { + if ([SFSafariViewController class] == nil) { NSString *errorMessage = @"in app browser tab not available"; CDVPluginResult *result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:errorMessage];