Skip to content

Commit 5687262

Browse files
committed
docs: describe the updated algorithm
1 parent 6c44e8d commit 5687262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const MyHalfHeightExampleComponent = ({ children }) => {
6161

6262
Under the hood `use100vh` uses `measureHeight` function which is exported as
6363
well, so feel free to use it, even without React. Currently it returns
64-
`document.documentElement?.clientHeight || window.innerHeight` or `null`.
64+
`window.innerHeight` in a browser and `null` in Node.
6565

6666
## Testing
6767

0 commit comments

Comments
 (0)