fix
This commit is contained in:
parent
d1b792f2bb
commit
6f8cee7190
|
|
@ -201,9 +201,11 @@ 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);
|
||||||
|
if (["localhost", "prasi.avolut.com"].includes(location.hostname)) {
|
||||||
console.error(`%c⬆`, "color:green", "SENT", params);
|
console.error(`%c⬆`, "color:green", "SENT", params);
|
||||||
console.error(`%c⬇`, `color:purple`, "RECV", result);
|
console.error(`%c⬇`, `color:purple`, "RECV", result);
|
||||||
console.log("");
|
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