From a62ea5ccad4bd009aaf9843e0f0646a7cc5c8ff5 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Mon, 28 Aug 2017 15:32:44 -0400 Subject: [PATCH] Use the same http protocol as the web interface Signed-off-by: Mcat12 --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 75c65e3..cce4f58 100644 --- a/src/utils.js +++ b/src/utils.js @@ -119,6 +119,6 @@ export const api = { else apiLocation = window.location.hostname + ":4747"; - return "http://" + apiLocation + "/" + endpoint; + return location.protocol + "//" + apiLocation + "/" + endpoint; } }; \ No newline at end of file