From 561ae1b3342dec6fe21818c65cd7f9a60715822e Mon Sep 17 00:00:00 2001 From: Andrea Bondavalli Date: Tue, 1 Sep 2020 20:29:00 +0200 Subject: [PATCH] Fix to webui to remove hardcoded HTTP server port. This allows to change the "http_port" parameter of the daemon configuration. --- webui/src/Services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/src/Services.js b/webui/src/Services.js index 148695a..09cb019 100644 --- a/webui/src/Services.js +++ b/webui/src/Services.js @@ -44,7 +44,7 @@ const defaultParams = { export default class RestAPI { static getBaseUrl() { - return location.protocol + '//' + location.hostname + ':8080'; + return location.protocol + '//' + location.host; } static doFetch(url, params = {}) {