fix(apps): restore mobile and website launching

This commit is contained in:
archipelago
2026-05-17 19:22:18 -04:00
parent daad50325b
commit 413d50116e
12 changed files with 402 additions and 39 deletions

View File

@@ -288,16 +288,19 @@ function goBack() {
function launchApp() {
if (!pkg.value) return
const id = appId.value
const isMobile = typeof window !== 'undefined' && window.innerWidth < 768
const webOnlyUrl = WEB_ONLY_APP_URLS[id]
if (webOnlyUrl) {
useAppLauncherStore().open({ url: webOnlyUrl, title: pkg.value.manifest.title })
useAppLauncherStore().open({ url: webOnlyUrl, title: pkg.value.manifest.title, openInNewTab: !isMobile })
return
}
if (isWebsitePackage(id, pkg.value)) {
const url = resolveRuntimeLaunchUrl(pkg.value)
if (url) window.open(url, '_blank', 'noopener,noreferrer')
if (url) {
useAppLauncherStore().open({ url, title: pkg.value.manifest.title, openInNewTab: !isMobile })
}
return
}