diff --git a/src/app/components/creator/room-creator-page/room-creator-page.component.ts b/src/app/components/creator/room-creator-page/room-creator-page.component.ts index 2c156ff9906a7e9735260756e43706512873372a..885d5fc23c79f27b0046e2dd5d6409a32cf55ac1 100644 --- a/src/app/components/creator/room-creator-page/room-creator-page.component.ts +++ b/src/app/components/creator/room-creator-page/room-creator-page.component.ts @@ -35,7 +35,7 @@ export class RoomCreatorPageComponent extends RoomPageComponent implements OnIni deviceType = localStorage.getItem('deviceType'); viewModuleCount = 1; moderatorCommentCounter: number; - urlToCopy = 'https://frag.jetzt/participant/room/'; + urlToCopy = `${window.location.protocol}//${window.location.hostname}/participant/room/`; constructor(protected roomService: RoomService, protected notification: NotificationService, diff --git a/src/app/components/shared/_dialogs/qr-code-dialog/qr-code-dialog.component.html b/src/app/components/shared/_dialogs/qr-code-dialog/qr-code-dialog.component.html index a74da206255d57ed6e741bf2b8dfbd48a6377587..30efef0b74c2f8ff7031d6c32e9abc75b8119615 100644 --- a/src/app/components/shared/_dialogs/qr-code-dialog/qr-code-dialog.component.html +++ b/src/app/components/shared/_dialogs/qr-code-dialog/qr-code-dialog.component.html @@ -7,7 +7,7 @@ <mat-icon>close</mat-icon> </button> <div class="qr_text" #text> - <h2>https://frag.jetzt + <h2>{{url}} <br>{{'qr-dialog.session' | translate}}: {{qrCode.substring(36, 40)}} {{qrCode.substring(40, 44)}}</h2> </div> </div> diff --git a/src/app/components/shared/_dialogs/qr-code-dialog/qr-code-dialog.component.ts b/src/app/components/shared/_dialogs/qr-code-dialog/qr-code-dialog.component.ts index 4a662657b5d7959d229011081bd546d20c60c0ad..c1696948d91bc841fed563fb01a72282042d3880 100644 --- a/src/app/components/shared/_dialogs/qr-code-dialog/qr-code-dialog.component.ts +++ b/src/app/components/shared/_dialogs/qr-code-dialog/qr-code-dialog.component.ts @@ -25,6 +25,7 @@ export class QrCodeDialogComponent implements OnInit, AfterViewInit { @ViewChild('imageWrapper') imgWrp: ElementRef; @ViewChild('text') text: ElementRef; + url: string = window.location.protocol + '//' + window.location.hostname; private img: HTMLImageElement; qrCode = '';