Skip to content

Commit

Permalink
improves compatibility with inconsistent CSSOM behavior of older brow…
Browse files Browse the repository at this point in the history
…sers (stitchesjs#929)
  • Loading branch information
cometkim authored Feb 14, 2022
1 parent cb414be commit 4a37f61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ const isSheetAccessible = (/** @type {CSSStyleSheet} */ sheet) => {
}

try {
sheet.cssRules
return true
return !!sheet.cssRules
} catch (e) {
return false
}
Expand Down

0 comments on commit 4a37f61

Please sign in to comment.