소스 검색

Tweak js error tracking

Thibaut Courouble 8 년 전
부모
커밋
407814d95d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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()