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 049ff7c..a1c87d9 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,9 +8,6 @@ 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) {} @@ -19,9 +16,8 @@ export class PreviewDialogComponent implements OnInit { } ngOnInit(): void { - this.hostname = 'http://'+window.location.hostname; let hostnamediv = document.getElementById('preview'); - hostnamediv.setAttribute('src', this.hostname); + hostnamediv.setAttribute('src', 'http://'+window.location.hostname); } }