This commit is contained in:
Vanessa 2024-10-27 12:14:06 +08:00
parent c716e3cf11
commit 9485260f66

View file

@ -67,7 +67,7 @@ export const fetchPost = (url: string, data?: any, cb?: (response: IWebSocketDat
cb(response);
}
}).catch((e) => {
console.warn("fetch post failed [" + e + "], url [" + url + "]");
console.warn("fetch post failed [" + e + "], url [" + url + "]");
if (url === "/api/transactions" && (e.message === "Failed to fetch" || e.message === "Unexpected end of JSON input")) {
kernelError();
return;