Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const rollbarOnerror = window.onerror
  2. window.onerror = function(message, source, lineno, colno, error) {
  3.   rollbarOnerror(??????)
  4.   if (!window.handledByRollbar) {
  5.     // We do our own thing
  6.   }
  7. }
  8.  
  9.  
  10. // Rollbar config
  11. {
  12.   ...
  13.   onSendCallback: function(isUncaught) {
  14.                   if (isUncaught) {
  15.                     window.handledByRollbar = true
  16.                     // Do happy path
  17.                   }
  18.                 },
  19.   ...
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement