Skip to content

Commit

Permalink
Merge pull request #21 from MindscapeHQ/custom-data-jquery-ajax
Browse files Browse the repository at this point in the history
set a max limit on data being sent
  • Loading branch information
martin308 committed Dec 16, 2013
2 parents 0b1476c + 7cc9078 commit b9e20be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/raygun.js
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ window.TraceKit = TraceKit;

}(window.jQuery, window.TraceKit));

(function (window, $) {
(function (window, $, undefined) {
// pull local copy of TraceKit to handle stack trace collection
var _traceKit = TraceKit.noConflict(),
_raygun = window.Raygun,
Expand Down Expand Up @@ -1269,7 +1269,7 @@ window.TraceKit = TraceKit;
type: ajaxSettings.type,
url: ajaxSettings.url,
contentType: ajaxSettings.contentType,
data: ajaxSettings.data });
data: ajaxSettings.data ? ajaxSettings.data.slice(0, 10240) : undefined });
}

function log(message) {
Expand Down
Loading

0 comments on commit b9e20be

Please sign in to comment.