Skip to content

Commit afd6256

Browse files
committed
fix(useStripeProvider): safari did not route to stripe customer portal
`window.open()` does not work on `safari based browsers`
1 parent b1dac3d commit afd6256

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

frontend/.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"useFeatureFlag",
7979
"useNotificationsOverviewStore",
8080
"useSettingsStore",
81+
"useStripeProvider",
8182
"useWindowSize",
8283
"variables.scss",
8384
"vscode"

frontend/composables/useStripeProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function useStripeProvider() {
5959
},
6060
)
6161

62-
window.open(res?.url, '_blank')
62+
await navigateTo(res?.url, { external: true })
6363

6464
isStripeProcessing.value = false
6565
}

0 commit comments

Comments
 (0)