Fix: Restore Native caching business logic and implement 3-mode launcher

- Implemented Default, Onsite, and Native launcher modes in launcher_file_cont.svelte.
- Restored background pre-caching logic with configurable timers in new LauncherBackgroundSync component.
- Fixed standard browser download regression for regular website mode.
- Modernized electron_relay to TypeScript and standardized bridge detection in layout.
- Detailed startup and background sync technical flow in documentation.
This commit is contained in:
Scott Idem
2026-01-23 15:17:50 -05:00
parent 20b41ebaef
commit 683ea0394d
11 changed files with 558 additions and 961 deletions

View File

@@ -645,11 +645,12 @@
}
// *** Electron Native Mode Detection ***
// If window.native_app exists, we are running inside the Electron bridge
// @ts-ignore - native_app is injected by the Electron preload script
if (window.native_app) {
// If window.native_app or window.aetherNative exists, we are running inside the Electron bridge
// @ts-ignore - native_app is injected by legacy, aetherNative by new V3 bridge
if (window.native_app || window.aetherNative) {
console.log('ELECTRON: Native environment detected. Switching to native app_mode.');
$events_loc.launcher.app_mode = 'native';
$ae_loc.is_native = true;
}
}