mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
6470afaec3
[web] change isMobileDevice segmentation to isSmallDevice GitOrigin-RevId: 1fcaf6ececc1fa75fd681ef2497bfa5e5567143d
12 lines
362 B
JavaScript
12 lines
362 B
JavaScript
import { isSmallDevice, sendMB } from '@/infrastructure/event-tracking'
|
|
import getMeta from '@/utils/meta'
|
|
|
|
// record once per page load
|
|
let recorded = false
|
|
|
|
export function recordDocumentFirstChangeEvent() {
|
|
if (recorded) return
|
|
recorded = true
|
|
const projectId = getMeta('ol-project_id')
|
|
sendMB('document-first-change', { projectId, isSmallDevice })
|
|
}
|