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