From 47ed6bedb4e2f92bf78d38c924debfde7f4d2f4b Mon Sep 17 00:00:00 2001 From: Bruno Roemers Date: Thu, 2 Dec 2021 12:47:38 +0100 Subject: [PATCH] 85123: BUGFIX: Use this.document instead of document Typo caused ReferenceError in SSR --- src/app/app.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index e614fd918b..1d7e86ff80 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -287,7 +287,7 @@ export class AppComponent implements OnInit, AfterViewInit { } // create new head tags (not yet added to DOM) - const headTagFragment = document.createDocumentFragment(); + const headTagFragment = this.document.createDocumentFragment(); this.createHeadTags(themeName) .forEach(newHeadTag => headTagFragment.appendChild(newHeadTag));