Webserver and api origin are not used anymore in the dashboard
This commit is contained in:
@@ -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 %>';
|
||||
<% } -%>
|
||||
|
||||
Reference in New Issue
Block a user