diff --git a/client/src/lib/platform.ts b/client/src/lib/platform.ts index 3c59979..d5136ea 100644 --- a/client/src/lib/platform.ts +++ b/client/src/lib/platform.ts @@ -46,9 +46,9 @@ export function detectPlatform(): PlatformType { cachedPlatform = 'mobile'; return cachedPlatform; } - console.log('[Platform] Capacitor running on web platform - ignoring'); + // Capacitor on web - ignore silently } catch (e) { - console.log('[Platform] Capacitor check failed - treating as web'); + // Failed to check - ignore silently } } @@ -80,9 +80,12 @@ export function detectPlatform(): PlatformType { // return 'mobile'; // } - // Default to web, but do NOT cache it so we can re-check later when Capacitor might be ready - console.log('[Platform] Detected: web (default - desktop browser or no native bridge)'); - return 'web'; + // Default to web - cache it to prevent infinite loops + if (!cachedPlatform) { + console.log('[Platform] Detected: web (default - desktop browser or no native bridge)'); + } + cachedPlatform = 'web'; + return cachedPlatform; } function getApiBaseUrl(): string { diff --git a/client/src/pages/os.tsx b/client/src/pages/os.tsx index c36257d..42449c4 100644 --- a/client/src/pages/os.tsx +++ b/client/src/pages/os.tsx @@ -1385,7 +1385,6 @@ export default function AeThexOS() { // Native Android App Layout if (layout.isMobile) { - console.log('📱 [OS] Rendering MOBILE layout (isMobile=true)', { layout }); const activeWindows = windows.filter(w => !w.minimized); const currentWindow = activeWindows[activeWindows.length - 1]; @@ -1633,8 +1632,6 @@ export default function AeThexOS() { ); } - - console.log('🖥️ [OS] Rendering DESKTOP layout (isMobile=false)'); // Desktop/Web layout return (