History

Fix JS exception data callback

Thibaut Courouble committed 10 years ago

Commit a2b858a1 parent 6a2bd641 file · +2 −1Browse files

Showing the changes to assets/javascripts (1 of 1 file). Show all

Unified · Split

assets/javascripts/app/app.coffee+2−1
@@ -57,7 +57,8 @@ · 56 unmodified lines
57 mode: if @DOC then 'single' else 'full'57 mode: if @DOC then 'single' else 'full'
58 iframe: (window.top isnt window).toString()58 iframe: (window.top isnt window).toString()
59 dataCallback: (data) ->59 dataCallback: (data) ->
60 try $.extend(data.user, app.settings.settings)60 try $.extend(data.user ||= {}, app.settings.settings)
61 data
61 .install()62 .install()
62 @previousErrorHandler = onerror63 @previousErrorHandler = onerror
63 window.onerror = @onWindowError.bind(@)64 window.onerror = @onWindowError.bind(@)