mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-06-20 10:37:54 +02:00
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:
@ -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");
|
||||
|
Reference in New Issue
Block a user