Ability to override defaultApiUrl
This commit is contained in:
parent
8eda0dcb1d
commit
c1aece8200
@ -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
1
Website/defaultApiUri.js
Normal file
@ -0,0 +1 @@
|
||||
let apiUri = `${window.location.protocol}//${window.location.host.split(':')[0]}:6531`
|
@ -295,6 +295,7 @@
|
||||
</footer>
|
||||
</wrapper>
|
||||
|
||||
<script src="defaultApiUri.js"></script>
|
||||
<script src="apiConnector.js"></script>
|
||||
<script src="interaction.js"></script>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user