select domen to callme

This commit is contained in:
Nastya 2023-10-23 14:22:29 +03:00
parent 8f42430f40
commit a6e1bbe1f1

@ -1,13 +1,13 @@
import axios from "axios";
const domen = window.location.hostname === "localhost" ? "squiz.pena.digital" : window.location.hostname
export function sendContactFormRequest(body: {
contact: string;
whoami: string;
}) {
return axios("https://squiz.pena.digital/feedback/callme", {
return axios(`https://${domen}/feedback/callme`, {
method: "POST",
headers: {
"Content-Type": "application/json",