diff --git a/web/js/Server.js b/web/js/Server.js index a34feae1d..32259f39e 100644 --- a/web/js/Server.js +++ b/web/js/Server.js @@ -45,8 +45,8 @@ var Server = function() { key: 'urlToApi', value: function urlToApi() { const port = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - return (location.protocol=='https:'? 'https:' : this.Protocol+':') + '//' + this.Hostname + (port ? ':' + port : '') + ((this.PathToApi && (this.PathToApi != 'null')) ? this.PathToApi : ''); - } + return (location.protocol=='https:'? 'https:' : this.Protocol+':') + '//' + this.Hostname + (port ? ':' + port : (this.Port ? ':' + this.Port : '')) + ((this.PathToApi && (this.PathToApi != 'null')) ? this.PathToApi : ''); + } }, { key: 'getFromApi',