From 84846843f3a49e5867ace338c20c142744bd65e9 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sat, 22 Apr 2017 09:26:51 -0400 Subject: [PATCH] Tweak JS error tracking --- assets/javascripts/app/app.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/app/app.coffee b/assets/javascripts/app/app.coffee index 912c1852..e41b8210 100644 --- a/assets/javascripts/app/app.coffee +++ b/assets/javascripts/app/app.coffee @@ -54,7 +54,7 @@ release: @config.release whitelistUrls: [/devdocs/] includePaths: [/devdocs/] - ignoreErrors: [/NPObject/, /NS_ERROR/, /^null$/, /Electron\.app/] + ignoreErrors: [/NPObject/, /NS_ERROR/, /^null$/, /EvalError/] tags: mode: if @isSingleDoc() then 'single' else 'full' iframe: (window.top isnt window).toString() @@ -72,6 +72,7 @@ $.extend(data.user ||= {}, app.settings.dump()) data.user.docs = data.user.docs.split('/') if data.user.docs data.user.lastIDBTransaction = app.lastIDBTransaction if app.lastIDBTransaction + data.tags.scriptCount = document.scripts.length data .install() @previousErrorHandler = onerror