Skip to content

Commit

Permalink
fix exception when parsing CSS @import rules (yWorks#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
HackbrettXXX authored Jul 20, 2021
1 parent 6c0f9a7 commit 8eccf90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/context/stylesheets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export class StyleSheets {
const cssRule = sheet.cssRules[i]
if (!(cssRule instanceof CSSStyleRule)) {
sheet.deleteRule(i)
continue
}
const cssStyleRule = cssRule as CSSStyleRule
if (cssStyleRule.selectorText.indexOf(',') >= 0) {
Expand Down

0 comments on commit 8eccf90

Please sign in to comment.