mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-17 22:27:19 +00:00
The boot screen was rendering as a black screen on web because useNativeFeatures() called Capacitor's Network.getStatus() without checking if the app was running on a native platform. This crashed the entire AeThexOS component during mount. Additionally, tablet testing code in use-platform-layout.ts was mixing viewport width checks (responsive design) with native platform detection, causing layout confusion between web and mobile builds. Changes: - Add isMobile() guards to all Capacitor plugin calls in useNativeFeatures - Remove tablet viewport-width branch from usePlatformLayout (platform detection should not check window.innerWidth) - Rename isMobileDevice() to isSmallViewport() in embed-utils to clarify it's a responsive check, not a platform check - Rename local isMobile state to isNarrowViewport in os.tsx DesktopWidgets to prevent shadowing the platform.ts isMobile() import - Remove dead PlatformAdaptiveExample.tsx (not imported anywhere) - Fix watchLocation TypeScript error (watchId is Promise<string>) - Add web fallbacks for clipboard and browser in useNativeFeatures Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| index.html | ||