blob: e0f98744ab936b9b4dde936e1760fe5bb43ad831 [file] [log] [blame]
// +build ignore,OMIT
package sample // OMIT
func BrowserHeightBucket(s *session.Event) string {
browserSize := sizeFromSession(s)
if h := browserSize.GetHeight(); h > 0 { // HL
browserHeight := int(h)
if browserHeight <= 480 { // HL
return "small"
} else if browserHeight <= 640 { // HL
return "medium"
} else {
return "large"
}
} else {
return "null"
}
}