Skip to content

Commit 4261349

Browse files
committed
Update error message if stripe.js loaded but isn't on window
1 parent 6dabc0d commit 4261349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const stripePromise: Promise<StripeConstructor | null> = Promise.resolve().then(
4545
if (window.Stripe) {
4646
resolve(window.Stripe);
4747
} else {
48-
reject(new Error('Failed to load Stripe.js'));
48+
reject(new Error('Stripe.js not available'));
4949
}
5050
});
5151

0 commit comments

Comments
 (0)