File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export default class AutoCheckElement extends HTMLElement {
62
62
return link . href
63
63
}
64
64
65
- get csrfFieldName ( ) : string {
65
+ get csrfField ( ) : string {
66
66
return this . getAttribute ( 'csrf-field' ) || 'authenticity_token'
67
67
}
68
68
@@ -155,7 +155,7 @@ async function check(autoCheckElement: AutoCheckElement) {
155
155
return
156
156
}
157
157
158
- const csrfFieldName = autoCheckElement . csrfFieldName
158
+ const csrfField = autoCheckElement . csrfField
159
159
const src = autoCheckElement . src
160
160
const csrf = autoCheckElement . csrf
161
161
const state = states . get ( autoCheckElement )
@@ -176,7 +176,7 @@ async function check(autoCheckElement: AutoCheckElement) {
176
176
}
177
177
178
178
const body = new FormData ( )
179
- body . append ( csrfFieldName , csrf )
179
+ body . append ( csrfField , csrf )
180
180
body . append ( 'value' , input . value )
181
181
182
182
input . dispatchEvent (
You can’t perform that action at this time.
0 commit comments