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();
setTimeout(() =>
{
let port = parseInt(this.document.location.port, 10) ? parseInt(this.document.location.port, 10) : 80;
this.serverService.getLocalServer(
this.document.location.hostname,
parseInt(this.document.location.port, 10))
port
)
.then((server: Server) => {
this.progressService.deactivate();
this.router.navigate(['/server', server.id, 'projects']);