Only send telemetry from production (#668)

This commit is contained in:
DC
2016-07-04 00:37:57 -07:00
committed by GitHub
parent 349c5ee22e
commit 1aca9fe753

View File

@@ -30,7 +30,13 @@ function init (state) {
telemetry.system = getSystemInfo()
telemetry.approxNumTorrents = getApproxNumTorrents(state)
postToServer(telemetry)
if (config.IS_PRODUCTION) {
postToServer()
} else {
// Development: telemetry used only for local debugging
// Empty uncaught errors, etc at the start of every run
reset()
}
}
function reset () {