Skip to content

Commit

Permalink
chore: tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Sep 21, 2023
1 parent e41ab83 commit 00be076
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions WebDriverAgentLib/Commands/FBSessionCommands.m
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,13 @@ + (NSDictionary *)sessionInformation
};
}

+ (NSString *)deviceName:(UIUserInterfaceIdiom) currentDevice
+ (NSString *)deviceName:(UIUserInterfaceIdiom) userInterfaceIdiom
{
if (currentDevice == UIUserInterfaceIdiomPad) {
if (userInterfaceIdiom == UIUserInterfaceIdiomPad) {
return @"iPad";
} else if (currentDevice == UIUserInterfaceIdiomTV) {
} else if (userInterfaceIdiom == UIUserInterfaceIdiomTV) {
return @"Apple TV";
} else if (currentDevice == UIUserInterfaceIdiomPhone) {
} else if (userInterfaceIdiom == UIUserInterfaceIdiomPhone) {
return @"iPhone";
}
// CarPlay, Mac, Vision UI or unknown are possible
Expand Down

0 comments on commit 00be076

Please sign in to comment.