From 0ec0d277f613dcf7118783f5e18aa8adbb3ae5b4 Mon Sep 17 00:00:00 2001 From: Harshith Kashyap Date: Thu, 2 Nov 2017 17:26:01 +0530 Subject: [PATCH] Fixes browsertab not opening on ios --- plugin/src/ios/CBTBrowserTab.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];