mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
85123: BUGFIX: Use this.document instead of document
Typo caused ReferenceError in SSR
This commit is contained in:
@@ -287,7 +287,7 @@ export class AppComponent implements OnInit, AfterViewInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create new head tags (not yet added to DOM)
|
// create new head tags (not yet added to DOM)
|
||||||
const headTagFragment = document.createDocumentFragment();
|
const headTagFragment = this.document.createDocumentFragment();
|
||||||
this.createHeadTags(themeName)
|
this.createHeadTags(themeName)
|
||||||
.forEach(newHeadTag => headTagFragment.appendChild(newHeadTag));
|
.forEach(newHeadTag => headTagFragment.appendChild(newHeadTag));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user