mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-06-16 16:47:53 +02:00
Reverse Proxy api automatically test
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
let apiUri = `${window.location.protocol}//${window.location.host.split(':')[0]}:6531`
|
||||
let apiUri = `${window.location.protocol}//${window.location.host}/api`
|
||||
|
||||
if(getCookie("apiUri") != ""){
|
||||
apiUri = getCookie("apiUri");
|
||||
}
|
||||
setCookie("apiUri", apiUri);
|
||||
// if(getCookie("apiUri") != ""){
|
||||
// apiUri = getCookie("apiUri");
|
||||
// }
|
||||
// setCookie("apiUri", apiUri);
|
||||
|
||||
function setCookie(cname, cvalue) {
|
||||
const d = new Date();
|
||||
|
Reference in New Issue
Block a user