Fix to webui to remove hardcoded HTTP server port.

This allows to change  the "http_port" parameter of the daemon configuration.
This commit is contained in:
Andrea Bondavalli 2020-09-01 20:29:00 +02:00
parent 344fba0827
commit 561ae1b334

View File

@ -44,7 +44,7 @@ const defaultParams = {
export default class RestAPI { export default class RestAPI {
static getBaseUrl() { static getBaseUrl() {
return location.protocol + '//' + location.hostname + ':8080'; return location.protocol + '//' + location.host;
} }
static doFetch(url, params = {}) { static doFetch(url, params = {}) {