Another cleanup
pull/57/head
KoalaV2 2022-10-04 20:05:09 +02:00
parent ec66ce5cc4
commit bf03a73020
No known key found for this signature in database
1 changed files with 1 additions and 5 deletions

View File

@ -8,9 +8,6 @@ import {MAT_DIALOG_DATA, MatDialogRef} from "@angular/material/dialog";
})
export class PreviewDialogComponent implements OnInit {
hostname = '';
hostnamediv = '';
constructor(public dialogRef: MatDialogRef<PreviewDialogComponent>,
@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);
}
}