This commit is contained in:
Rizky 2024-10-08 20:09:01 +07:00
parent d1b792f2bb
commit 6f8cee7190
1 changed files with 5 additions and 3 deletions

View File

@ -201,9 +201,11 @@ export const fetchSendDb = async (
const res = await fetch(getProxyUrl(url), { method: "POST", body });
text = await res.text();
result = JSON.parse(text);
if (["localhost", "prasi.avolut.com"].includes(location.hostname)) {
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:");