Skip to content

Commit

Permalink
fix: gh-action failing to find isiOSAppOnMac on processInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu committed Apr 6, 2022
1 parent 396e8c7 commit de74384
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ios/CDVDevice.m
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ - (BOOL)isVirtual
- (BOOL) isiOSAppOnMac
{
if (@available(iOS 14.0, *)) {
return [NSProcessInfo processInfo].isiOSAppOnMac;
return [[NSProcessInfo processInfo] isiOSAppOnMac];
} else {
// Fallback on earlier versions, and platforms
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/osx/CDVDevice.m
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ + (NSString*) cordovaVersion {

+ (BOOL) isiOSAppOnMac {
if (@available(iOS 14.0, *)) {
return [NSProcessInfo processInfo].isiOSAppOnMac;
return [[NSProcessInfo processInfo] isiOSAppOnMac];
} else {
// Fallback on earlier versions and platforms
return false;
Expand Down

0 comments on commit de74384

Please sign in to comment.