mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
Add auth folder.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user