Skip to content

Commit

Permalink
fix(device): isVirtual is false on M1 simulators (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Dec 6, 2021
1 parent 17f2ee8 commit 5377586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion device/ios/Plugin/DevicePlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class DevicePlugin: CAPPlugin {
}
@objc func getInfo(_ call: CAPPluginCall) {
var isSimulator = false
#if arch(i386) || arch(x86_64)
#if targetEnvironment(simulator)
isSimulator = true
#endif

Expand Down

0 comments on commit 5377586

Please sign in to comment.