mirror of
https://github.com/openstf/stf
synced 2025-10-05 02:29:26 +02:00
Fix display information.
This commit is contained in:
parent
eb841161ac
commit
5bbe7d33a6
25 changed files with 5 additions and 6 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue