throw fetch error
This commit is contained in:
@@ -55,6 +55,10 @@ export const fetchApi = async ({ input, init, transOpts, apiSetting }) => {
|
|||||||
[input, init] = await newTransReq(transOpts, apiSetting);
|
[input, init] = await newTransReq(transOpts, apiSetting);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!input) {
|
||||||
|
throw new Error("url is empty");
|
||||||
|
}
|
||||||
|
|
||||||
if (isGm) {
|
if (isGm) {
|
||||||
let info;
|
let info;
|
||||||
if (window.KISS_GM) {
|
if (window.KISS_GM) {
|
||||||
|
|||||||
Reference in New Issue
Block a user