throw fetch error

This commit is contained in:
Gabe Yuan
2023-11-06 15:42:21 +08:00
parent 37989b0089
commit 8d074e63e1

View File

@@ -55,6 +55,10 @@ export const fetchApi = async ({ input, init, transOpts, apiSetting }) => {
[input, init] = await newTransReq(transOpts, apiSetting);
}
if (!input) {
throw new Error("url is empty");
}
if (isGm) {
let info;
if (window.KISS_GM) {