
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 |
* Detect if rendering from the client or the server |
||||
*/ |
*/ |
||||
export const canUseDOM = !!( |
export const canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement); |
||||
typeof window !== "undefined" && |
|
||||
window.document && |
|
||||
window.document.createElement && |
|
||||
window.document.body |
|
||||
); |
|
||||
|
Loading…
Reference in new issue