Skip to content

Commit

Permalink
Import fix for #6
Browse files Browse the repository at this point in the history
Thanks to @webbird
  • Loading branch information
NewEraCracker committed Mar 22, 2016
1 parent d22e8d4 commit 395e9e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions csrf-magic.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ CsrfMagic.prototype._updateProps = function() {
}
}
CsrfMagic.process = function(base) {
if(typeof base == 'object') {
base[csrfMagicName] = csrfMagicToken;
return base;
}
var prepend = csrfMagicName + '=' + csrfMagicToken;
if (base) return prepend + '&' + base;
return prepend;
Expand Down

0 comments on commit 395e9e7

Please sign in to comment.