Add auth folder.

This commit is contained in:
Yang Luo
2021-02-14 14:34:03 +08:00
parent 40587f35e3
commit 001496b90f
11 changed files with 42 additions and 46 deletions

View File

@ -26,15 +26,6 @@ export function initServerUrl() {
}
}
export function initClientUrl() {
const hostname = window.location.hostname;
if (hostname === "localhost") {
ClientUrl = `http://${hostname}:7001`;
} else {
ClientUrl = `https://${hostname}`;
}
}
export function parseJson(s) {
if (s === "") {
return null;