Kaynağa Gözat

Fix JS error tracking

Thibaut Courouble 9 yıl önce
ebeveyn
işleme
e3abd50406
1 değiştirilmiş dosya ile 5 ekleme ve 4 silme
  1. 5 4
      assets/javascripts/app/app.coffee

+ 5 - 4
assets/javascripts/app/app.coffee

@@ -56,10 +56,11 @@
           tags:
             mode: if @DOC then 'single' else 'full'
             iframe: (window.top isnt window).toString()
-          shouldSendCallback: ->
-            if @isInjectionError()
-              @onInjectionError()
-              return false
+          shouldSendCallback: =>
+            try
+              if @isInjectionError()
+                @onInjectionError()
+                return false
             true
           dataCallback: (data) ->
             try