refactor: application dependency management (#2363)

This commit is contained in:
Mo
2023-07-23 15:54:31 -05:00
committed by GitHub
parent e698b1c990
commit a77535456c
299 changed files with 7415 additions and 4890 deletions

View File

@@ -9,12 +9,12 @@ export async function openSubscriptionDashboard(application: WebApplicationInter
const url = `${window.dashboardUrl}?subscription_token=${token}`
if (application.deviceInterface.environment === Environment.Mobile) {
application.deviceInterface.openUrl(url)
if (application.device.environment === Environment.Mobile) {
application.device.openUrl(url)
return
}
if (application.deviceInterface.environment === Environment.Desktop) {
if (application.device.environment === Environment.Desktop) {
window.open(url, '_blank')
return
}