Errors will occur before we detect v2, make sure those don't get sent.
This commit is contained in:
parent
be934756d4
commit
afe98d2425
@ -318,13 +318,13 @@ Main =
|
||||
|
||||
errors: []
|
||||
logError: (data) ->
|
||||
return if Main.v2Detected
|
||||
unless Main.errors.length
|
||||
$.on window, 'unload', Main.postErrors
|
||||
c.error data.message, data.error.stack
|
||||
Main.errors.push data
|
||||
|
||||
postErrors: ->
|
||||
return if Main.v2Detected
|
||||
errors = Main.errors.map (d) -> d.message + ' ' + d.error.stack
|
||||
$.ajax '<%= meta.page %>errors', {},
|
||||
sync: true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user