set crp123-cors as default cors proxy

This commit is contained in:
creeper123123321 2021-02-28 07:01:16 -03:00 committed by GitHub
parent e5f46dfd57
commit 0b101d1278
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ function icanhazip(cors) {
// Proxy
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() {
return localStorage.getItem("cors-proxy") || defaultCors();