diff --git a/projects/app-lob/src/app/app.component.ts b/projects/app-lob/src/app/app.component.ts index cad9fbe55..fa2d8bab6 100644 --- a/projects/app-lob/src/app/app.component.ts +++ b/projects/app-lob/src/app/app.component.ts @@ -62,13 +62,13 @@ export class AppComponent implements OnInit { typefaceElem.rel = 'stylesheet'; typefaceElem.id = 'ignteui-theme-typeface'; typefaceElem.href = this.typefaceUrl + typeface.split(' ').join('+'); - this.document.head.insertBefore(typefaceElem, this.document.head.lastElementChild); + this.document.head.appendChild(typefaceElem); } private createThemeStyle() { this.styleElem = this.document.createElement('style'); this.styleElem.id = 'igniteui-theme'; - this.document.head.insertBefore(this.styleElem, this.document.head.lastElementChild); + this.document.head.appendChild(this.styleElem); this.document.body.classList.add('custom-body'); } } diff --git a/projects/app-lob/src/app/index/docs-layout.component.ts b/projects/app-lob/src/app/index/docs-layout.component.ts index b4fe2df43..2f36f8b13 100644 --- a/projects/app-lob/src/app/index/docs-layout.component.ts +++ b/projects/app-lob/src/app/index/docs-layout.component.ts @@ -42,7 +42,7 @@ export class DocsLayoutComponent implements OnInit { private createThemeStyle() { this.styleElem = this.document.createElement('style'); this.styleElem.id = 'igniteui-theme'; - this.document.head.insertBefore(this.styleElem, this.document.head.lastElementChild); + this.document.head.appendChild(this.styleElem); this.document.body.classList.add('custom-body'); } @@ -51,6 +51,6 @@ export class DocsLayoutComponent implements OnInit { typefaceElem.rel = 'stylesheet'; typefaceElem.id = 'ignteui-theme-typeface'; typefaceElem.href = this.typefaceUrl + typeface.split(' ').join('+'); - this.document.head.insertBefore(typefaceElem, this.document.head.lastElementChild); + this.document.head.appendChild(typefaceElem); } } diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 5480185df..65360adec 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -44,13 +44,13 @@ export class AppComponent implements OnInit { typefaceElem.rel = 'stylesheet'; typefaceElem.id = 'ignteui-theme-typeface'; typefaceElem.href = this.typefaceUrl + typeface.split(' ').join('+'); - this.document.head.insertBefore(typefaceElem, this.document.head.lastElementChild); + this.document.head.appendChild(typefaceElem); } private createThemeStyle() { this.styleElem = this.document.createElement('style'); this.styleElem.id = 'igniteui-theme'; - this.document.head.insertBefore(this.styleElem, this.document.head.lastElementChild); + this.document.head.appendChild(this.styleElem); this.document.body.classList.add('custom-body'); } }