Skip to content

Commit 181c88c

Browse files
committed
fixes eslint issues
1 parent 1e5509c commit 181c88c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default class AutoCheckElement extends HTMLElement {
6363
}
6464

6565
get csrfFieldName(): string {
66-
return this.getAttribute('[data-csrf-field]') || 'authenticity_token';
66+
return this.getAttribute('csrf-field') || 'authenticity_token'
6767
}
6868

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

158-
const csrfFieldName = autoCheckElement.csrfFieldName;
158+
const csrfFieldName = autoCheckElement.csrfFieldName
159159
const src = autoCheckElement.src
160160
const csrf = autoCheckElement.csrf
161161
const state = states.get(autoCheckElement)

0 commit comments

Comments
 (0)