mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-02-09 00:31:40 +01:00
set crp123-cors as default cors proxy
This commit is contained in:
parent
e5f46dfd57
commit
0b101d1278
@ -43,7 +43,7 @@ function icanhazip(cors) {
|
|||||||
|
|
||||||
// Proxy
|
// Proxy
|
||||||
function defaultCors() {
|
function defaultCors() {
|
||||||
return window.location.host == "viaversion.github.io" ? "https://crp123-cors.herokuapp.com/" : "http://localhost:8080/";
|
return "https://crp123-cors.herokuapp.com/";
|
||||||
}
|
}
|
||||||
function getCorsProxy() {
|
function getCorsProxy() {
|
||||||
return localStorage.getItem("cors-proxy") || defaultCors();
|
return localStorage.getItem("cors-proxy") || defaultCors();
|
||||||
|
Loading…
Reference in New Issue
Block a user