From c88b58aee846eff88f986e551f2b47972ac8ef6d Mon Sep 17 00:00:00 2001 From: josedario87 Date: Fri, 17 Oct 2025 03:23:47 -0600 Subject: [PATCH] =?UTF-8?q?Agregar=20mejoras=20de=20PWA:=20id=20=C3=BAnico?= =?UTF-8?q?,=20launch=5Fhandler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Agregar id Ășnico (/?app=inicio) para identificar PWA - Implementar launch_handler con navigate-existing para mantener una sola ventana - Mejoras basadas en especificaciones actualizadas de Chrome for Developers --- nuxt4/nuxt.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nuxt4/nuxt.config.ts b/nuxt4/nuxt.config.ts index d72be7d..48d8881 100644 --- a/nuxt4/nuxt.config.ts +++ b/nuxt4/nuxt.config.ts @@ -29,6 +29,7 @@ export default defineNuxtConfig({ registerType: 'autoUpdate', includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'icon.svg', 'offline.html'], manifest: { + id: '/?app=inicio', name: 'Perfil Nucleo', short_name: 'Perfil', description: 'Gestiona tu perfil de usuario y accede a tus aplicaciones de Nucleo', @@ -41,6 +42,10 @@ export default defineNuxtConfig({ orientation: 'any', scope: '/', start_url: '/?source=pwa', + // Control de ventanas - mantener una sola ventana al navegar + launch_handler: { + client_mode: 'navigate-existing' + }, // Capturar todos los enlaces que apunten a esta app capture_links: 'existing-client-navigate', // Extender scope a otros subdominios de Nucleo V3