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