fix: open upgrade page in new tab if user has account
This commit is contained in:
@@ -25,7 +25,8 @@ export const loadPurchaseFlowUrl = async (application: WebApplication): Promise<
|
|||||||
if (application.isNativeMobileWeb()) {
|
if (application.isNativeMobileWeb()) {
|
||||||
application.mobileDevice().openUrl(finalUrl)
|
application.mobileDevice().openUrl(finalUrl)
|
||||||
} else {
|
} else {
|
||||||
window.location.assign(finalUrl)
|
const windowProxy = window.open('', '_blank')
|
||||||
|
;(windowProxy as WindowProxy).location = finalUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user