This repository was archived by the owner on Oct 27, 2022. It is now read-only.
This repository was archived by the owner on Oct 27, 2022. It is now read-only.
ReferenceError: window is not defined when using server-side rendering #14
Closed
Description
The following check should be enough i think
typeof window != "undefined"
Smth like:
typeof window != "undefined" && !('getComputedStyle' in window) && (window.getComputedStyle = (function (window) {
instead of
!('getComputedStyle' in window) && (window.getComputedStyle = (function (window) {
Metadata
Metadata
Assignees
Labels
No labels