@cambly/syntax-core 7.11.1 → 7.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1164,7 +1164,7 @@ function Layer({
|
|
|
1164
1164
|
children,
|
|
1165
1165
|
zIndex = 1
|
|
1166
1166
|
}) {
|
|
1167
|
-
return createPortal(
|
|
1167
|
+
return typeof document !== "undefined" ? createPortal(
|
|
1168
1168
|
/* @__PURE__ */ jsx16(
|
|
1169
1169
|
Box_default,
|
|
1170
1170
|
{
|
|
@@ -1177,7 +1177,7 @@ function Layer({
|
|
|
1177
1177
|
}
|
|
1178
1178
|
),
|
|
1179
1179
|
document.body
|
|
1180
|
-
);
|
|
1180
|
+
) : null;
|
|
1181
1181
|
}
|
|
1182
1182
|
|
|
1183
1183
|
// css-module:./Modal.module.css#css-module
|