Skip to content

Commit

Permalink
Merge pull request #40 from Ewg777/patch-3
Browse files Browse the repository at this point in the history
Update SSJailbreakCheck.m
  • Loading branch information
Shmoopi committed Sep 1, 2016
2 parents f900582 + 2cbb912 commit adfa2e7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions System Services/Utilities/SSJailbreakCheck.m
Expand Up @@ -134,18 +134,18 @@ + (int)jailbroken {
// UIApplication CanOpenURL Check
+ (int)urlCheck {
@try {
// Create a fake url for cydia
NSURL *FakeURL = [NSURL URLWithString:CYDIAPACKAGE];
// Return whether or not cydia's openurl item exists
if ([[UIApplication sharedApplication] canOpenURL:FakeURL])
return KFOpenURL;
else
return NOTJAIL;
#if !(defined(__has_feature) && __has_feature(attribute_availability_app_extension))
// Create a fake url for cydia
NSURL *FakeURL = [NSURL URLWithString:CYDIAPACKAGE];
// Return whether or not cydia's openurl item exists
if ([[UIApplication sharedApplication] canOpenURL:FakeURL])
return KFOpenURL;
#end
}
@catch (NSException *exception) {
// Error, return false
return NOTJAIL;
}
return NOTJAIL;
}

// Cydia Check
Expand Down

0 comments on commit adfa2e7

Please sign in to comment.