Browse Source

Tweak js error tracking

Thibaut Courouble 8 years ago
parent
commit
407814d95d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      assets/javascripts/app/app.coffee

+ 2 - 1
assets/javascripts/app/app.coffee

@@ -54,10 +54,11 @@
           release: @config.release
           whitelistUrls: [/devdocs/]
           includePaths: [/devdocs/]
-          ignoreErrors: [/NPObject/, /NS_ERROR/, /^null$/]
+          ignoreErrors: [/NPObject/, /NS_ERROR/, /^null$/, /Electron\.app/]
           tags:
             mode: if @isSingleDoc() then 'single' else 'full'
             iframe: (window.top isnt window).toString()
+            electron: window.process?.versions?.electron
           shouldSendCallback: =>
             try
               if @isInjectionError()