Skip to content

Commit

Permalink
Merge branch 'nm-web-fix'
Browse files Browse the repository at this point in the history
Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
  • Loading branch information
rtobar committed Jul 8, 2021
2 parents 1b2823a + 066cec5 commit e12f29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daliuge-engine/dlg/manager/web/dm.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ <h2>Sessions</h2>

var dimUrlQuery = new URL(window.location.href);
var dimUrl = dimUrlQuery.searchParams.get("dim_url");
var dimIP = dimUrl.split("//").pop().split(":").shift();
var nodeIP = window.location.href.split("http://").slice(1).join('http://').split(":").shift(1);

if(dimUrl){
var dimIP = dimUrl.split("//").pop().split(":").shift();
d3.select('#islandDisplay').html("<a href="+dimUrl+">DIM: " + dimIP+"</a>");
d3.select('#nodeDisplay').text("/ Node: " + nodeIP);
}
Expand Down

0 comments on commit e12f29d

Please sign in to comment.