1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

fix mixpanel bug

This commit is contained in:
Dick Choi
2016-09-15 05:50:29 +09:00
parent 1705511b10
commit 27b09e5b73

View File

@@ -69,14 +69,14 @@ function _flush () {
let events = _fetch()
events = events.concat(spliced)
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) {
properties = Object.assign({}, properties, {