From 33e0a26d359c0317a98bc03995641a762b8628cc Mon Sep 17 00:00:00 2001 From: MrPiglr Date: Thu, 12 Feb 2026 20:55:32 -0700 Subject: [PATCH] modified: client/src/lib/platform.ts --- client/src/lib/platform.ts | 13 ++++++++----- client/src/pages/os.tsx | 3 --- 2 files changed, 8 insertions(+), 8 deletions(-) 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 (