mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-17 17:17:35 +08:00
fix: duplicate getting screen orientation
This commit is contained in:
@@ -244,6 +244,10 @@ type Size struct {
|
||||
Height int `json:"height"`
|
||||
}
|
||||
|
||||
func (s Size) IsNil() bool {
|
||||
return s.Width == 0 && s.Height == 0
|
||||
}
|
||||
|
||||
type Screen struct {
|
||||
StatusBarSize Size `json:"statusBarSize"`
|
||||
Scale float64 `json:"scale"`
|
||||
|
||||
Reference in New Issue
Block a user