-
-
Save dcramer/25b09c916a1f82a6838d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Raven.config(dsn, { | |
dataCallback: function(data) { | |
var stack = data.stacktrace; | |
if (!stack) return data; | |
var normalize = function(filename) { | |
return filename.split("/www/", 2)[-1]; | |
}; | |
var frame; | |
for (var i = 0; i < stack.frames.length; i++) { | |
frame.filename = normalize(stack.frames[i].filename); | |
} | |
return data; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment