diff --git a/evilportal/package-lock.json b/evilportal/package-lock.json index 0b65542..ffbd836 100644 --- a/evilportal/package-lock.json +++ b/evilportal/package-lock.json @@ -5,6 +5,7 @@ "requires": true, "packages": { "": { + "name": "evilportal", "version": "0.0.0", "dependencies": { "@angular/animations": "~9.1.11", diff --git a/evilportal/projects/evilportal/src/lib/components/helpers/preview-dialog/preview-dialog.component.html b/evilportal/projects/evilportal/src/lib/components/helpers/preview-dialog/preview-dialog.component.html index 452e1ba..a231f79 100644 --- a/evilportal/projects/evilportal/src/lib/components/helpers/preview-dialog/preview-dialog.component.html +++ b/evilportal/projects/evilportal/src/lib/components/helpers/preview-dialog/preview-dialog.component.html @@ -12,7 +12,6 @@
- +
- diff --git a/evilportal/projects/evilportal/src/lib/components/helpers/preview-dialog/preview-dialog.component.ts b/evilportal/projects/evilportal/src/lib/components/helpers/preview-dialog/preview-dialog.component.ts index fe31bf4..049ff7c 100644 --- a/evilportal/projects/evilportal/src/lib/components/helpers/preview-dialog/preview-dialog.component.ts +++ b/evilportal/projects/evilportal/src/lib/components/helpers/preview-dialog/preview-dialog.component.ts @@ -8,6 +8,9 @@ import {MAT_DIALOG_DATA, MatDialogRef} from "@angular/material/dialog"; }) export class PreviewDialogComponent implements OnInit { + hostname = ''; + hostnamediv = ''; + constructor(public dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: any) {} @@ -16,6 +19,9 @@ export class PreviewDialogComponent implements OnInit { } ngOnInit(): void { + this.hostname = 'http://'+window.location.hostname; + let hostnamediv = document.getElementById('preview'); + hostnamediv.setAttribute('src', this.hostname); } }