Skip to content
Permalink
Browse files
CB-9865 Better simulator detection for iOS
  • Loading branch information
alsorokin committed Oct 26, 2015
1 parent 78763b3 commit ffc819d5661f5aed98c0b08a5e524fc2d5087320
Showing 1 changed file with 7 additions and 1 deletion.
@@ -94,7 +94,13 @@ + (NSString*)cordovaVersion

- (BOOL)isVirtual
{
return TARGET_OS_SIMULATOR;
#if TARGET_OS_SIMULATOR
return true;
#elif TARGET_IPHONE_SIMULATOR
return true;
#else
return false;
#endif
}

@end

0 comments on commit ffc819d

Please sign in to comment.