diff --git a/src/app/components/shared/quiz-now/quiz-now.component.html b/src/app/components/shared/quiz-now/quiz-now.component.html index 18dd69c14285d2e0d03a2846ab01a5bcd984fa54..ecb59886c41754ed388dba8d2775b11ff21392ef 100644 --- a/src/app/components/shared/quiz-now/quiz-now.component.html +++ b/src/app/components/shared/quiz-now/quiz-now.component.html @@ -1,3 +1,3 @@ <div class="container"> - <iframe class="responsive-iframe" src="https://arsnova.click"></iframe> + <iframe class="responsive-iframe" src="urlSafe"></iframe> </div> diff --git a/src/app/components/shared/quiz-now/quiz-now.component.ts b/src/app/components/shared/quiz-now/quiz-now.component.ts index a97b45cb33e4b1a0012518ae0db1fc241ee417a4..82870fd955b136ebe77c3f603b66c76dba07f730 100644 --- a/src/app/components/shared/quiz-now/quiz-now.component.ts +++ b/src/app/components/shared/quiz-now/quiz-now.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit } from '@angular/core'; +import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser'; @Component({ selector: 'app-quiz-now', @@ -7,9 +8,13 @@ import { Component, OnInit } from '@angular/core'; }) export class QuizNowComponent implements OnInit { - constructor() { } + url = 'https://arsnova.click'; + urlSafe: SafeResourceUrl; + + constructor(public sanitizer: DomSanitizer) { } ngOnInit(): void { + this.urlSafe = this.sanitizer.bypassSecurityTrustResourceUrl(this.url); } }