We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47d0d87 commit 95f628aCopy full SHA for 95f628a
src/helpers/ariaAppHider.js
@@ -30,12 +30,14 @@ export function tryForceFallback() {
30
31
export function validateElement(appElement) {
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(' '));
+ throw new Error(
+ [
+ "react-modal: Cannot fallback to `document.body`, because it is not",
+ "ready or available. If you are doing server-side rendering, use this",
+ "function to defined an element. `Modal.setAppElement(el)` to make",
+ "this accessible"
39
+ ].join(" ")
40
+ );
41
}
42
43
0 commit comments