blob: 1a8f682f4c95df396f449eb2bd2e038a90f057a4 [file] [log] [blame]
package sample // OMIT
func BrowserHeightBucket(s *session.Event) string {
size := sizeFromSession(s)
h := size.GetHeight()
switch {
case h <= 0: // HL
return "null"
case h <= 480: // HL
return "small"
case h <= 640: // HL
return "medium"
default: // HL
return "large"
}
}