MCPcopy Create free account
hub / github.com/AutoCodeStack/ios-device-farm / getDeviceSize

Function getDeviceSize

src/utils/device.utils.ts:137–139  ·  view source on GitHub ↗
(machineId: string)

Source from the content-addressed store, hash-verified

135};
136
137export const getDeviceSize = (machineId: string) => {
138 return iPhoneDevicesSizes[machineId] || { dpr: 3, viewportWidth: 430, viewportHeight: 932 };
139};
140
141const iPhoneDevicesSizes: { [key: string]: any } = {
142 "iPhone8,4": { dpr: 2, viewportWidth: 320, viewportHeight: 568 }, // iPhone SE (1st Gen)

Callers 1

attachedEventMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected