Don't log extra background events (#5134)
parent
39f74ced5c
commit
8860890a85
|
@ -226,12 +226,12 @@ AppState.addEventListener('change', (state: AppStateStatus) => {
|
|||
let secondsActive = 0
|
||||
if (lastActive != null) {
|
||||
secondsActive = Math.round((performance.now() - lastActive) / 1e3)
|
||||
}
|
||||
lastActive = null
|
||||
logEvent('state:background:sampled', {
|
||||
secondsActive,
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
export async function tryFetchGates(
|
||||
|
|
Loading…
Reference in New Issue