Merge pull request #792 from feross/dc/telemetry

Telemtry: post at least once a day
This commit is contained in:
Feross Aboukhadijeh
2016-08-21 05:48:45 +02:00
committed by GitHub

View File

@@ -32,6 +32,8 @@ function init (state) {
if (config.IS_PRODUCTION) {
postToServer()
// If the user keeps WebTorrent running for a long time, post every 24h
setInterval(postToServer, 24 * 3600 * 1000)
} else {
// Development: telemetry used only for local debugging
// Empty uncaught errors, etc at the start of every run