Update bundled-server-finder.component.ts

This commit is contained in:
piotrpekala7 2020-05-06 10:58:52 +02:00
parent 79dee73590
commit 3f0772c352

View File

@ -22,9 +22,12 @@ export class BundledServerFinderComponent implements OnInit {
this.progressService.activate(); this.progressService.activate();
setTimeout(() => setTimeout(() =>
{ {
let port = parseInt(this.document.location.port, 10) ? parseInt(this.document.location.port, 10) : 80;
this.serverService.getLocalServer( this.serverService.getLocalServer(
this.document.location.hostname, this.document.location.hostname,
parseInt(this.document.location.port, 10)) port
)
.then((server: Server) => { .then((server: Server) => {
this.progressService.deactivate(); this.progressService.deactivate();
this.router.navigate(['/server', server.id, 'projects']); this.router.navigate(['/server', server.id, 'projects']);