Skip to content

Commit

Permalink
feat:updateCssRule
Browse files Browse the repository at this point in the history
  • Loading branch information
ananzhusen committed Jan 10, 2025
1 parent 00fdb1c commit 2bb3cf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export const le5leTheme = {
const theme = this.getTheme(themeName)
const newCssDeclarations = theme;
const styleSheet = this.findStyleSheet(this.style_prefix + id);
if(!styleSheet) return;
let ruleExists = false;
for (let i = 0; i < styleSheet.cssRules.length; i++) {
const rule = styleSheet.cssRules[i];
Expand Down

0 comments on commit 2bb3cf4

Please sign in to comment.