Fix: Standardize Electron bridge and implement robust caching
- Refactored all IPC methods and parameters to snake_case for consistency with SvelteKit. - Implemented exhaustive background caching engine with download locking. - Reverted to legacy-proven flat hash storage pattern (hash.file). - Added axios for reliable stream-based binary downloads. - Updated preload and main handlers to support recursive room data fetching.
This commit is contained in:
4
dist/main/api_client.js
vendored
4
dist/main/api_client.js
vendored
@@ -28,7 +28,6 @@ async function fetchFullConfig(seed) {
|
||||
const deviceData = deviceResult.data || deviceResult;
|
||||
// Use 'app_base_url' as the FQDN for the site lookup
|
||||
const fqdn = deviceData.app_base_url || 'native-demo.oneskyit.com';
|
||||
console.log(`Bootstrap Step 1 Success: Device identified. FQDN to use: ${fqdn}`);
|
||||
// --- STEP 2: Get Site Context ---
|
||||
const searchUrl = `${baseUrl}/v3/crud/site_domain/search`;
|
||||
const siteResponse = await fetch(searchUrl, {
|
||||
@@ -54,7 +53,8 @@ async function fetchFullConfig(seed) {
|
||||
console.log(`Bootstrap Success using ${baseUrl}`);
|
||||
return {
|
||||
...siteDomain,
|
||||
native_device: deviceData
|
||||
native_device: deviceData,
|
||||
aether_api_key: seed.aether_api_key // Include the key for frontend use
|
||||
};
|
||||
}
|
||||
catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user