File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,14 @@ export function tryForceFallback() {
30
30
31
31
export function validateElement ( appElement ) {
32
32
if ( ! appElement && ! globalElement && ! tryForceFallback ( ) ) {
33
- throw new Error ( [
34
- 'react-modal: Cannot fallback to `document.body`, because it is not' ,
35
- 'ready or available. If you are doing server-side rendering, use this' ,
36
- 'function to defined an element. `Modal.setAppElement(el)` to make' ,
37
- 'this accessible' ,
38
- ] . join ( ' ' ) ) ;
33
+ throw new Error (
34
+ [
35
+ "react-modal: Cannot fallback to `document.body`, because it is not" ,
36
+ "ready or available. If you are doing server-side rendering, use this" ,
37
+ "function to defined an element. `Modal.setAppElement(el)` to make" ,
38
+ "this accessible"
39
+ ] . join ( " " )
40
+ ) ;
39
41
}
40
42
}
41
43
You can’t perform that action at this time.
0 commit comments