Skip to content

Commit

Permalink
fixed hostname and port in areService to be able to use asterics-ergo…
Browse files Browse the repository at this point in the history
… on a remote host
  • Loading branch information
Benjamin Klaus committed May 17, 2017
1 parent 4ebb916 commit 7f3e132
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ angular.module(asterics.appServices)
.service('areService', ['$http', '$q', function ($http, $q) {
var thiz = this;
//The base URI that ARE runs at
var _baseURI = "http://localhost:8081/rest/";
var hostname = window.location.hostname;
var port = window.location.port;
var _baseURI = "http://" + hostname + ":" + port + "/rest/";
//delimiter used for encoding
var delimiter = "-";
var _eventSourceMap = {};
Expand Down

0 comments on commit 7f3e132

Please sign in to comment.