Fix: Synchronize SvelteKit relay and enhance native command testing
- Updated electron_relay.ts with full Phase 3 command set (run_cmd_sync, kill_processes, get_device_info). - Fixed 500 error in Event Location by standardizing enabled/hidden flags. - Hardened native environment detection in root layout. - Added Manual OS Command input to Launcher Configuration for Phase 3 testing.
This commit is contained in:
@@ -645,12 +645,17 @@
|
||||
}
|
||||
|
||||
// *** Electron Native Mode Detection ***
|
||||
// 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
|
||||
// Explicitly set is_native if the bridge is detected, ensuring reactivity for all child components
|
||||
// @ts-ignore
|
||||
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;
|
||||
if (!$ae_loc.is_native) {
|
||||
console.log('ELECTRON: Native environment detected via window bridge.');
|
||||
$ae_loc.is_native = true;
|
||||
}
|
||||
// Ensure launcher mode is set to native if we're in the bridge
|
||||
if ($events_loc?.launcher && $events_loc.launcher.app_mode !== 'native') {
|
||||
$events_loc.launcher.app_mode = 'native';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
{:else}
|
||||
<span class="fas fa-chevron-right"></span>
|
||||
{/if}
|
||||
Native OS Folders
|
||||
Native OS Handlers & Folders
|
||||
</span>
|
||||
<span class="badge variant-filled-success">Active</span>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user