Skip to content

Commit

Permalink
Event object recieved as a parameter in body eventlistener
Browse files Browse the repository at this point in the history
  • Loading branch information
mebjas authored Feb 13, 2017
1 parent d9c8cea commit e5022ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/csrfprotector.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function csrfprotector_init() {
// TODO - check for method
//==================================================================
// run time binding
document.querySelector('body').addEventListener('submit', function() {
document.querySelector('body').addEventListener('submit', function(event) {
if (event.target.tagName.toLowerCase() === 'form') {
BasicSubmitInterceptor(event);
};
Expand Down

0 comments on commit e5022ca

Please sign in to comment.