Jānis Skarnelis
3 years ago
6 changed files with 15 additions and 20 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,9 +1,4 @@ |
|||
/** |
|||
* Detect if rendering from the client or the server |
|||
*/ |
|||
export const canUseDOM = !!( |
|||
typeof window !== "undefined" && |
|||
window.document && |
|||
window.document.createElement && |
|||
window.document.body |
|||
); |
|||
export const canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement); |
|||
|
Loading…
Reference in new issue