Ability to override defaultApiUrl

This commit is contained in:
vonProteus 2024-09-01 06:08:37 +02:00
parent 8eda0dcb1d
commit c1aece8200
No known key found for this signature in database
GPG Key ID: 65472F126055FF23
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,4 @@
let apiUri = `${window.location.protocol}//${window.location.host.split(':')[0]}:6531`
if(getCookie("apiUri") != ""){
if(getCookie("apiUri") != ""){
apiUri = getCookie("apiUri");
}
setCookie("apiUri", apiUri);

1
Website/defaultApiUri.js Normal file
View File

@ -0,0 +1 @@
let apiUri = `${window.location.protocol}//${window.location.host.split(':')[0]}:6531`

View File

@ -294,7 +294,8 @@
<p id="madeWith">Made with Blåhaj 🦈</p>
</footer>
</wrapper>
<script src="defaultApiUri.js"></script>
<script src="apiConnector.js"></script>
<script src="interaction.js"></script>
</body>