mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Don't log extra background events (#5134)

authored by danabra.mov and committed by

GitHub 8860890a 39f74ced

+4 -4
+4 -4
src/lib/statsig/statsig.tsx
··· 226 226 let secondsActive = 0 227 227 if (lastActive != null) { 228 228 secondsActive = Math.round((performance.now() - lastActive) / 1e3) 229 + lastActive = null 230 + logEvent('state:background:sampled', { 231 + secondsActive, 232 + }) 229 233 } 230 - lastActive = null 231 - logEvent('state:background:sampled', { 232 - secondsActive, 233 - }) 234 234 } 235 235 }) 236 236