Potential fix/support for HTTPS

Removed the hard-coded http in the API url and instead calling  window.location.protocol
This commit is contained in:
db-2001
2024-02-24 10:27:14 -05:00
parent b99ade74c7
commit 5cda6ece05
2 changed files with 2 additions and 3 deletions

View File

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