We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e5509c commit 181c88cCopy full SHA for 181c88c
src/index.ts
@@ -63,7 +63,7 @@ export default class AutoCheckElement extends HTMLElement {
63
}
64
65
get csrfFieldName(): string {
66
- return this.getAttribute('[data-csrf-field]') || 'authenticity_token';
+ return this.getAttribute('csrf-field') || 'authenticity_token'
67
68
69
set src(value: string) {
@@ -155,7 +155,7 @@ async function check(autoCheckElement: AutoCheckElement) {
155
return
156
157
158
- const csrfFieldName = autoCheckElement.csrfFieldName;
+ const csrfFieldName = autoCheckElement.csrfFieldName
159
const src = autoCheckElement.src
160
const csrf = autoCheckElement.csrf
161
const state = states.get(autoCheckElement)
0 commit comments