fix: on mobile open links from editor in external browser (#1860)
This commit is contained in:
@@ -35,7 +35,7 @@ export class MobileWebReceiver {
|
||||
this.handleNativeEvent(nativeEvent)
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('Error parsing message from React Native', error)
|
||||
console.log('[MobileWebReceiver] Error parsing message from React Native', error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ export async function openSubscriptionDashboard(application: SNApplication) {
|
||||
|
||||
const url = `${window.dashboardUrl}?subscription_token=${token}`
|
||||
|
||||
if (application.deviceInterface.environment === Environment.NativeMobileWeb) {
|
||||
if (application.deviceInterface.environment === Environment.Mobile) {
|
||||
application.deviceInterface.openUrl(url)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user