Telemetry: fix error logging bugs, [object Object] and [object HTMLMediaElement]

This commit is contained in:
DC
2016-08-25 05:56:46 -07:00
parent 2c179c7465
commit f488ef7597
3 changed files with 42 additions and 13 deletions

View File

@@ -116,7 +116,8 @@ function onState (err, _state) {
// Log uncaught JS errors
window.addEventListener('error',
(e) => telemetry.logUncaughtError('window', e.error || e.target), true)
(e) => telemetry.logUncaughtError('window', e),
true /* capture */)
// Done! Ideally we want to get here < 500ms after the user clicks the app
sound.play('STARTUP')