spemailhandler
Advanced tools
Comparing version 1.0.4 to 1.1.0
@@ -90,6 +90,11 @@ "use strict"; | ||
const name = nameElement?.value || ""; | ||
const turnstileInput = document.getElementsByName( | ||
"cf-turnstile-response" | ||
)[0]; | ||
const turnstileToken = turnstileInput?.value || ""; | ||
const data = { | ||
name, | ||
email, | ||
message | ||
message, | ||
turnstileToken | ||
}; | ||
@@ -96,0 +101,0 @@ this.sendMessage(data); |
{ | ||
"name": "spemailhandler", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "A script to handle the interaction between a Bootstrap-based contact form and the server, handling form submission and feedback.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -116,2 +116,7 @@ import "bootstrap"; | ||
const turnstileInput = document.getElementsByName( | ||
"cf-turnstile-response", | ||
)[0] as HTMLInputElement | null; | ||
const turnstileToken = turnstileInput?.value || ""; | ||
const data = { | ||
@@ -121,2 +126,3 @@ name, | ||
message, | ||
turnstileToken, | ||
}; | ||
@@ -123,0 +129,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26821
13
353