pull/2/head
Suvodip 2024-07-01 17:19:38 +05:30
parent 7b514fa08c
commit d88ec02a13
1 changed files with 5 additions and 5 deletions

View File

@ -80,7 +80,7 @@ import Layout from "../layouts/Layout.astro";
referrer: document.referrer
};
fetch('https://192.168.0.166/v3/contact-form-processor/', {
fetch('http://192.168.0.166:2053/v3/contact-form-processor/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
@ -90,14 +90,14 @@ import Layout from "../layouts/Layout.astro";
.then(response => response.json())
.then(data => {
if (data.success) {
alert('Data submitted successfully');
console.log('Data submitted successfully');
} else {
alert('Error: ' + data.message);
console.log('Error: ' + data.message);
}
})
.catch(error => {
console.error('Error:', error);
alert('An error occurred while submitting the form');
console.log('An error occurred while submitting the form');
});
});