Files
automaker/apps/app/electron/preload.js
Cody Seibert 8e65f0b338 refactor: streamline Electron API integration and enhance UI components
- Removed unused Electron API methods and simplified the main process.
- Introduced a new workspace picker modal for improved project selection.
- Enhanced error handling for authentication issues across various components.
- Updated UI styles for dark mode support and added new CSS variables.
- Refactored session management to utilize a centralized API access method.
- Added server routes for workspace management, including directory listing and configuration checks.
2025-12-12 02:14:52 -05:00

11 lines
387 B
JavaScript

const { contextBridge } = require("electron");
// Only expose a flag to detect Electron environment
// All API calls go through HTTP to the backend server
contextBridge.exposeInMainWorld("isElectron", true);
// Expose platform info for UI purposes
contextBridge.exposeInMainWorld("electronPlatform", process.platform);
console.log("[Preload] Electron flag exposed (HTTP-only mode)");