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/app (1 of 1 file). Show all

Unified · Split

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