AFAIK: the last changes to v1 production, checked in several months later.

This commit is contained in:
Spencer Flagg 2022-05-04 15:32:10 +02:00
parent 98d92d6946
commit a68f2645a9

View file

@ -176,21 +176,25 @@
try { 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', method: 'POST',
//mode: 'no-cors',
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded', 'Content-Type': 'application/x-www-form-urlencoded',
}, },
body: formBody, body: formBody,
}) })
.then(response => { .then(response => {
//console.log("response.status: " + response.status);
if(response.status === 200){ if(response.status === 200){
return response.json(); return response.text();
} else { } else {
otherError.classList.add('form-alert--visible'); otherError.classList.add('form-alert--visible');
} }
}) })
.then(data => { .then(data => {
//console.log("data:");
//console.log(data);
switch (data) { switch (data) {
case "succesSendingSupportEmail": case "succesSendingSupportEmail":
success.classList.add('form-alert--visible'); success.classList.add('form-alert--visible');
@ -209,7 +213,7 @@
default: default:
break; break;
} }
console.log(data) //console.log(data)
}); });
} catch (error) { } catch (error) {