diff --git a/alx911.html b/alx911.html
index f99978a..aef3b05 100644
--- a/alx911.html
+++ b/alx911.html
@@ -12,9 +12,6 @@
-
-
-
@@ -73,11 +70,6 @@
-
-
-
diff --git a/js/alx911.js b/js/alx911.js
index fbf03b7..660585d 100644
--- a/js/alx911.js
+++ b/js/alx911.js
@@ -143,27 +143,18 @@
}
};
- // API: Form Submit Handler
+// API: Form Submit Handler
form.addEventListener('submit', async (e) => {
e.preventDefault();
hideAlert();
const formData = new FormData(form);
- // Turnstile Token Check
- const turnstileToken = formData.get('cf-turnstile-response');
- if (turnstileToken) {
- formData.set('turnstileToken', turnstileToken);
- } else if (!formData.get('turnstileToken')) {
- showAlert('Please complete the Cloudflare security verification.');
- return;
- }
-
submitBtn.disabled = true;
submitBtn.innerHTML = ' Uploading...';
try {
- const res = await fetch('https://alx911-api.danielmorrisey.com/api/calls', {
+ const res = await fetch(`${API_BASE_URL}/api/calls`, {
method: 'POST',
body: formData
});
@@ -179,10 +170,6 @@
document.querySelector('#audio-dropzone .file-label').textContent = 'Choose or drag audio file';
document.querySelector('#video-dropzone .file-label').textContent = 'Choose or drag video file';
- if (window.turnstile) {
- window.turnstile.reset();
- }
-
// Refresh call feed instantly
fetchCalls();
} catch (err) {