mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 04:25:08 +00:00
(AppComponent) Small tweak for IE11 compatibility
This commit is contained in:
parent
c4e338cda1
commit
d8782a78d5
|
@ -138,13 +138,16 @@ export class AppComponent implements OnInit, OnDestroy
|
||||||
this.document.body.classList.remove('boxed');
|
this.document.body.classList.remove('boxed');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Color theme
|
// Color theme - Use normal for loop for IE11 compatibility
|
||||||
this.document.body.classList.forEach(className => {
|
for ( let i = 0; i < this.document.body.classList.length; i++ )
|
||||||
|
{
|
||||||
|
const className = this.document.body.classList[i];
|
||||||
|
|
||||||
if ( className.startsWith('theme-') )
|
if ( className.startsWith('theme-') )
|
||||||
{
|
{
|
||||||
this.document.body.classList.remove(className);
|
this.document.body.classList.remove(className);
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
|
||||||
this.document.body.classList.add(this.fuseConfig.colorTheme);
|
this.document.body.classList.add(this.fuseConfig.colorTheme);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user