Use the same http protocol as the web interface

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2017-08-28 15:32:44 -04:00
parent 15d781afa8
commit a62ea5ccad
+1 -1
View File
@@ -119,6 +119,6 @@ export const api = {
else
apiLocation = window.location.hostname + ":4747";
return "http://" + apiLocation + "/" + endpoint;
return location.protocol + "//" + apiLocation + "/" + endpoint;
}
};