mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-12 14:05:20 +00:00
Update bundled-server-finder.component.ts
This commit is contained in:
parent
79dee73590
commit
3f0772c352
@ -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']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user