stripe / connect-js

Loading wrapper for Connect.js
https://stripe.com/docs/connect/get-started-connect-embedded-components
MIT License
16 stars 6 forks source link

Improve the error message for environments like nextjs #43

Closed jorgea-stripe closed 10 months ago

jorgea-stripe commented 10 months ago

Right now our error for when running connectjs in an SSR environment is:

ReferenceError: window is not defined

This PR improves the error, while it doesn't change the existing behavior (the promise is still rejecting).