Skip to content

Commit 6f7137a

Browse files
committed
changed const name
1 parent 181c88c commit 6f7137a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default class AutoCheckElement extends HTMLElement {
6262
return link.href
6363
}
6464

65-
get csrfFieldName(): string {
65+
get csrfField(): string {
6666
return this.getAttribute('csrf-field') || 'authenticity_token'
6767
}
6868

@@ -155,7 +155,7 @@ async function check(autoCheckElement: AutoCheckElement) {
155155
return
156156
}
157157

158-
const csrfFieldName = autoCheckElement.csrfFieldName
158+
const csrfField = autoCheckElement.csrfField
159159
const src = autoCheckElement.src
160160
const csrf = autoCheckElement.csrf
161161
const state = states.get(autoCheckElement)
@@ -176,7 +176,7 @@ async function check(autoCheckElement: AutoCheckElement) {
176176
}
177177

178178
const body = new FormData()
179-
body.append(csrfFieldName, csrf)
179+
body.append(csrfField, csrf)
180180
body.append('value', input.value)
181181

182182
input.dispatchEvent(

0 commit comments

Comments
 (0)