AFAIK: the last changes to v1 production, checked in several months later.
This commit is contained in:
parent
98d92d6946
commit
a68f2645a9
1 changed files with 7 additions and 3 deletions
|
|
@ -176,21 +176,25 @@
|
|||
|
||||
try {
|
||||
|
||||
fetch('https://humananatomy3d.app/app/php/email/v1/SendSupportMailFromWebsite.php', { mode: 'no-cors' }, {
|
||||
fetch('https://humananatomy3d.app/app/php/email/v1/SendSupportMailFromWebsite.php', {
|
||||
method: 'POST',
|
||||
//mode: 'no-cors',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
},
|
||||
body: formBody,
|
||||
})
|
||||
.then(response => {
|
||||
//console.log("response.status: " + response.status);
|
||||
if(response.status === 200){
|
||||
return response.json();
|
||||
return response.text();
|
||||
} else {
|
||||
otherError.classList.add('form-alert--visible');
|
||||
}
|
||||
})
|
||||
.then(data => {
|
||||
//console.log("data:");
|
||||
//console.log(data);
|
||||
switch (data) {
|
||||
case "succesSendingSupportEmail":
|
||||
success.classList.add('form-alert--visible');
|
||||
|
|
@ -209,7 +213,7 @@
|
|||
default:
|
||||
break;
|
||||
}
|
||||
console.log(data)
|
||||
//console.log(data)
|
||||
});
|
||||
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue