Skip to content

Commit

Permalink
Update src/auto-check-element.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Keith Cirkel <[email protected]>
  • Loading branch information
srt32 and keithamus authored May 24, 2024
1 parent 03e00a7 commit 443a63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auto-check-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function setLoadingState(event: Event) {
const state = states.get(autoCheckElement)

// If some attributes are missing we want to exit early and make sure that the element is valid.
if (!src || (isHttpPost && !csrf) || !state) {
if (!src || (this.httpMethod == 'POST' && !csrf) || !state) {

Check failure on line 201 in src/auto-check-element.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected 'this'

Check failure on line 201 in src/auto-check-element.ts

View workflow job for this annotation

GitHub Actions / build

Expected '===' and instead saw '=='
return
}

Expand Down

0 comments on commit 443a63a

Please sign in to comment.