Closed maccman closed 3 years ago
You need to check typeof window first because of the server side rendering.
typeof window
https://github.com/userflow/userflow.js/blob/6f483484c70a519d24074435d367e2fa64b65093/src/userflow.ts#L169
Thanks for reporting this! Fixed in v2.1.1 (already published to npm)
v2.1.1
You need to check
typeof window
first because of the server side rendering.https://github.com/userflow/userflow.js/blob/6f483484c70a519d24074435d367e2fa64b65093/src/userflow.ts#L169