Skip to content

Instantly share code, notes, and snippets.

@Crisfole
Created May 3, 2016 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Crisfole/7febd9897b464dbd8e7d6c2b01b9c7df to your computer and use it in GitHub Desktop.
Save Crisfole/7febd9897b464dbd8e7d6c2b01b9c7df to your computer and use it in GitHub Desktop.
function transform(payload) {
if (payload.data.body.trace) {
payload.data.body.trace.frames.forEach(function(frame) {
frame.orig_filename = frame.filename;
frame.filename = "www.mysite.com/js/" + frame.filename.split("/").pop();
});
}
payload.data.client[is_ios ? "iOS" : "javascript"] = "Cordova";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment