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 fb9a377 commit 511d068Copy full SHA for 511d068
package.json
@@ -1,7 +1,7 @@
1
{
2
"name": "@atomico/hooks",
3
"description": "Series of utilities in hooks format to extend the operation of Atomico",
4
- "version": "3.33.5",
+ "version": "3.33.6",
5
"type": "module",
6
"workspaces": [
7
"src/**/*"
src/use-css-light-dom/use-css-light-dom.js
@@ -26,8 +26,10 @@ export function useCssLightDom(sheet) {
26
getRules(
27
sheet,
28
current.localName + `[data-sheet="${current.dataset.sheet}"]`
29
- ).forEach((rule) =>
30
- style.sheet.insertRule(rule, style.sheet.cssRules.length)
+ ).forEach(
+ (rule) =>
31
+ style.sheet &&
32
+ style.sheet.insertRule(rule, style.sheet.cssRules.length)
33
)
34
);
35
0 commit comments