Created
May 3, 2016 15:18
-
-
Save Crisfole/7febd9897b464dbd8e7d6c2b01b9c7df 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
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