mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 10:53:21 +02:00
Fix display information.
This commit is contained in:
@@ -345,6 +345,10 @@ module.exports = syrup.serial()
|
||||
, density: response.density
|
||||
, rotation: response.rotation
|
||||
, secure: response.secure
|
||||
, size: Math.sqrt(
|
||||
Math.pow(response.width / response.xdpi, 2) +
|
||||
Math.pow(response.height / response.ydpi, 2)
|
||||
)
|
||||
}
|
||||
}
|
||||
throw new Error('Unable to retrieve display information')
|
||||
|
||||
Reference in New Issue
Block a user