Skip to content

Commit e5022ca

Browse files
authored
Event object recieved as a parameter in body eventlistener
1 parent d9c8cea commit e5022ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/csrfprotector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function csrfprotector_init() {
189189
// TODO - check for method
190190
//==================================================================
191191
// run time binding
192-
document.querySelector('body').addEventListener('submit', function() {
192+
document.querySelector('body').addEventListener('submit', function(event) {
193193
if (event.target.tagName.toLowerCase() === 'form') {
194194
BasicSubmitInterceptor(event);
195195
};

0 commit comments

Comments
 (0)