avoid triggering forceupdate on homepage on init of theme state
This commit is contained in:
		@@ -25,6 +25,7 @@ class StaticInfos {
 | 
				
			|||||||
     * @param enable enable the dark theme?
 | 
					     * @param enable enable the dark theme?
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    enableDarkTheme(enable = true): void {
 | 
					    enableDarkTheme(enable = true): void {
 | 
				
			||||||
 | 
					        if (this.darktheme !== enable) {
 | 
				
			||||||
            this.darktheme = enable;
 | 
					            this.darktheme = enable;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // trigger onThemeChange handlers
 | 
					            // trigger onThemeChange handlers
 | 
				
			||||||
@@ -32,6 +33,7 @@ class StaticInfos {
 | 
				
			|||||||
                func();
 | 
					                func();
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * get the currently selected theme stylesheet
 | 
					     * get the currently selected theme stylesheet
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user