We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a65f1c commit d7c7369Copy full SHA for d7c7369
production/react/demos/src/common/index.tsx
50 Bytes
src/common/index.tsx
@@ -634,6 +634,13 @@ function processResize(e: any): void {
634
* Theme Loading
635
*/
636
function loadTheme(theme: string): void {
637
+ let body: HTMLElement = document.body;
638
+ if (body.classList.length > 0) {
639
+ for (let themeItem of themeCollection) {
640
+ body.classList.remove(themeItem);
641
+ }
642
643
+ body.classList.add(theme);
644
themeList.querySelector('.active').classList.remove('active');
645
themeList.querySelector('#' + theme).classList.add('active');
646
let ajax: Ajax = new Ajax('./styles/' + theme + '.css', 'GET', true);
0 commit comments