Telemetry: report uncaught errors

This commit is contained in:
DC
2016-06-21 02:48:44 -07:00
parent c3686417e3
commit 1f51f35f8e
4 changed files with 25 additions and 7 deletions

View File

@@ -63,6 +63,9 @@ function init () {
ipc.send('ipcReadyWebTorrent')
window.addEventListener('error', (err) =>
ipc.send('wt-uncaught-error', {message: err.error.message, stack: err.error.stack}))
setInterval(updateTorrentProgress, 1000)
}