Passing arguments through the global leak pattern

I made a minor mistake here. The example above can of course be shortened to:

stripe = require('https://js.stripe.com/v3').catch(() => window.Stripe(key))

I left my original comment unchanged to keep the example of using .then().

2 Likes