Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugin/src/ios/CBTBrowserTab.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down