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 6f7137a commit a1bf41aCopy full SHA for a1bf41a
src/index.ts
@@ -62,10 +62,6 @@ export default class AutoCheckElement extends HTMLElement {
62
return link.href
63
}
64
65
- get csrfField(): string {
66
- return this.getAttribute('csrf-field') || 'authenticity_token'
67
- }
68
-
69
set src(value: string) {
70
this.setAttribute('src', value)
71
@@ -90,6 +86,14 @@ export default class AutoCheckElement extends HTMLElement {
90
86
this.removeAttribute('required')
91
87
92
88
89
+
+ get csrfField(): string {
+ return this.getAttribute('csrf-field') || 'authenticity_token'
+ }
93
94
+ set csrfField(value: string) {
95
+ this.setAttribute('csrf-field', value);
96
97
98
99
function setLoadingState(event: Event) {
0 commit comments