diff --git a/Website/apiConnector.js b/Website/apiConnector.js index be5f878..2eb16d5 100644 --- a/Website/apiConnector.js +++ b/Website/apiConnector.js @@ -1,9 +1,7 @@ -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(); diff --git a/Website/defaultApiUri.js b/Website/defaultApiUri.js new file mode 100644 index 0000000..5173806 --- /dev/null +++ b/Website/defaultApiUri.js @@ -0,0 +1 @@ +let apiUri = `${window.location.protocol}//${window.location.host.split(':')[0]}:6531` \ No newline at end of file diff --git a/Website/index.html b/Website/index.html index 804b644..f618366 100644 --- a/Website/index.html +++ b/Website/index.html @@ -293,7 +293,8 @@

Made with Blåhaj 🦈

- + +