Fixed serverAPI throwing error on proxy server challenge, improved modals (#1820)

This commit is contained in:
Devin Binnie
2021-10-18 12:46:32 -04:00
committed by GitHub
parent 2194ca85ca
commit 12052d4e0b
3 changed files with 7 additions and 3 deletions

View File

@@ -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) {