Allow to specify the appstore subscription helper origins

This commit is contained in:
Johannes Zellner
2019-08-05 20:32:56 +02:00
parent 1d7e73c162
commit 2227e1dd4b
4 changed files with 28 additions and 9 deletions

View File

@@ -268,6 +268,14 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
angular.copy(config, this._config);
<% if (appstore.webOrigin) { -%>
this._config.webServerOrigin = '<%= appstore.webOrigin %>';
<% } -%>
<% if (appstore.ApiOrigin) { -%>
this._config.apiServerOrigin = '<%= appstore.webOrigin %>';
<% } -%>
this._configListener.forEach(function (callback) {
callback(that._config);
});