mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
fix mixpanel bug
This commit is contained in:
@@ -69,14 +69,14 @@ function _flush () {
|
|||||||
let events = _fetch()
|
let events = _fetch()
|
||||||
events = events.concat(spliced)
|
events = events.concat(spliced)
|
||||||
localStorage.setItem('events', JSON.stringify(events))
|
localStorage.setItem('events', JSON.stringify(events))
|
||||||
|
} else {
|
||||||
|
_flush()
|
||||||
}
|
}
|
||||||
console.log('batched ', errs.length)
|
|
||||||
_flush()
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setInterval(_flush, 1000 * 60 * 10)
|
setInterval(_flush, 1000 * 60 * 60)
|
||||||
|
|
||||||
function track (name, properties) {
|
function track (name, properties) {
|
||||||
properties = Object.assign({}, properties, {
|
properties = Object.assign({}, properties, {
|
||||||
|
|||||||
Reference in New Issue
Block a user