This commit is contained in:
Rizky 2024-10-08 20:06:27 +07:00
parent ae1fbef4af
commit df94cbfb03
1 changed files with 3 additions and 0 deletions

View File

@ -201,6 +201,9 @@ export const fetchSendDb = async (
const res = await fetch(getProxyUrl(url), { method: "POST", body });
text = await res.text();
result = JSON.parse(text);
console.error(`%c⬆`, "color:green", "SENT", params);
console.error(`%c⬇`, `color:purple`, "RECV", result);
console.log("");
} catch (e) {
if (["localhost", "prasi.avolut.com"].includes(location.hostname)) {
console.error("Error while fetching from db:");