select domen to callme
This commit is contained in:
parent
8f42430f40
commit
a6e1bbe1f1
@ -1,13 +1,13 @@
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
|
const domen = window.location.hostname === "localhost" ? "squiz.pena.digital" : window.location.hostname
|
||||||
|
|
||||||
export function sendContactFormRequest(body: {
|
export function sendContactFormRequest(body: {
|
||||||
|
|
||||||
contact: string;
|
contact: string;
|
||||||
whoami: string;
|
whoami: string;
|
||||||
}) {
|
}) {
|
||||||
return axios("https://squiz.pena.digital/feedback/callme", {
|
return axios(`https://${domen}/feedback/callme`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
Loading…
Reference in New Issue
Block a user