From 049c0ed77b5a584bc2f0235d30aa6efdfbff870b Mon Sep 17 00:00:00 2001 From: _Bastler Date: Wed, 6 Oct 2021 07:39:15 +0200 Subject: [PATCH] text --- src/app/pages/submission/submission.page.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/app/pages/submission/submission.page.ts b/src/app/pages/submission/submission.page.ts index ac76305..bf692ae 100644 --- a/src/app/pages/submission/submission.page.ts +++ b/src/app/pages/submission/submission.page.ts @@ -45,15 +45,7 @@ export class PageSubmission implements OnInit { } onTitleFocus(event): void { - fetch(this.form.get("url").value) - .then((response) => response.text()) - .then((html) => { - const doc = new DOMParser().parseFromString(html, "text/html"); - const title = doc.querySelectorAll('title')[ 0 ]; - return title.innerText; - }).then((title) => { - this.form.get("title").setValue(title); - }) + } create(): void {