Skip to content

Commit

Permalink
Fix payment history button for Safari (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt authored Oct 14, 2024
1 parent 2a7316a commit 2420926
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/src/providers/stripe_portal_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class StripePortal extends _$StripePortal {
Future<void> open() async {
final url = state ?? await generateUrl();
reset();
await launchUrl(Uri.parse(url));
await launchUrl(
Uri.parse(url),
webOnlyWindowName: '_self',
);
}
}
2 changes: 1 addition & 1 deletion lib/src/providers/stripe_portal_provider.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2420926

Please sign in to comment.