Skip to content

Commit

Permalink
fix: Remove launch desktop prompt (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio authored Jan 12, 2024
1 parent cd9b122 commit 38a4a6f
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions src/kernel-loader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,23 +390,14 @@ export function startKernel() {
track('initialize_versions', injectVersions({}))

if (!isMobile()) {
launchDesktopApp().then((launched) => {
if (launched) {
store.dispatch(setDesktopDetected(launched))
track('desktop_launched')
}

return initKernel()
.then((kernel) => {
store.dispatch(setKernelLoaded(kernel))
if (!launched) {
return initLogin(kernel)
}
})
.catch((error) => {
store.dispatch(setKernelError({ error }))
defaultWebsiteErrorTracker(error)
})
})
return initKernel()
.then((kernel) => {
store.dispatch(setKernelLoaded(kernel))
return initLogin(kernel)
})
.catch((error) => {
store.dispatch(setKernelError({ error }))
defaultWebsiteErrorTracker(error)
})
}
}

0 comments on commit 38a4a6f

Please sign in to comment.