Webserver and api origin are not used anymore in the dashboard

This commit is contained in:
Johannes Zellner
2022-05-05 16:53:10 +02:00
parent 9bffe9bd15
commit 1e7a20b1ed
4 changed files with 2 additions and 25 deletions

View File

@@ -382,8 +382,6 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
avatarUrl: null
};
this._config = {
apiServerOrigin: null,
webServerOrigin: null,
consoleServerOrigin: null,
fqdn: null,
ip: null,
@@ -484,7 +482,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
Client.prototype.onConfig = function (callback) {
this._configListener.push(callback);
if (this._config && this._config.apiServerOrigin) callback(this._config);
if (this._config) callback(this._config);
};
Client.prototype.onReconnect = function (callback) {
@@ -521,14 +519,6 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
angular.copy(config, this._config);
<% if (appstore.webOrigin) { -%>
this._config.webServerOrigin = '<%= appstore.webOrigin %>';
<% } -%>
<% if (appstore.apiOrigin) { -%>
this._config.apiServerOrigin = '<%= appstore.apiOrigin %>';
<% } -%>
<% if (appstore.consoleOrigin) { -%>
this._config.consoleServerOrigin = '<%= appstore.consoleOrigin %>';
<% } -%>