mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
- 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.
11 lines
387 B
JavaScript
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)");
|