use whatever port the app is running on for ajax requests

This commit is contained in:
2020-04-05 15:25:27 +00:00
parent 7d1927bcbf
commit 03accc1828
3 changed files with 7 additions and 7 deletions

View File

@@ -140,7 +140,7 @@ export class VisualizationPageComponent implements OnInit {
this.plotService.sendPlotRequest(request).subscribe(function(plotResponse){
console.log("response: " + JSON.stringify(plotResponse));
that.plotView.imageUrl = "http://"+window.location.hostname+':17333/'+plotResponse.imageUrl;
that.plotView.imageUrl = "http://"+window.location.hostname+':'+window.location.port+'/'+plotResponse.imageUrl;
document.dispatchEvent(new Event("invadersPause", {}));
},
error => {