Skip to content

Commit

Permalink
fix: open upgrade page in new tab if user has account
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Oct 8, 2022
1 parent c4c33db commit e7ca12b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export const loadPurchaseFlowUrl = async (application: WebApplication): Promise<
if (application.isNativeMobileWeb()) {
application.mobileDevice().openUrl(finalUrl)
} else {
window.location.assign(finalUrl)
const windowProxy = window.open('', '_blank')
;(windowProxy as WindowProxy).location = finalUrl
}

return true
Expand Down

0 comments on commit e7ca12b

Please sign in to comment.