From 664711ed4376e365f1a19d8622100ffe994fa84e Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 17 Apr 2016 10:42:31 -0400 Subject: [PATCH] Log user settings on JS error --- assets/javascripts/app/app.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/javascripts/app/app.coffee b/assets/javascripts/app/app.coffee index 08fbd9fe..4910f1a7 100644 --- a/assets/javascripts/app/app.coffee +++ b/assets/javascripts/app/app.coffee @@ -56,6 +56,8 @@ tags: mode: if @DOC then 'single' else 'full' iframe: (window.top isnt window).toString() + dataCallback: (data) -> + try $.extend(data.user, app.settings.settings) .install() @previousErrorHandler = onerror window.onerror = @onWindowError.bind(@)