Fixed serverAPI throwing error on proxy server challenge, improved modals (#1820)
This commit is contained in:
@@ -49,6 +49,7 @@ export async function getServerAPI<T>(url: URL, isAuthenticated: boolean, onSucc
|
||||
} else {
|
||||
onError?.(new Error(`Bad status code requesting from ${url.toString()}`));
|
||||
}
|
||||
response.on('error', onError || (() => {}));
|
||||
});
|
||||
}
|
||||
if (onAbort) {
|
||||
|
Reference in New Issue
Block a user