// Preload script for the VNCmail+ desktop shell. Runs in an isolated // context with access to Node APIs, and exposes a minimal, explicit surface // to the renderer via contextBridge - the renderer never gets direct Node or // Electron access (contextIsolation + nodeIntegration: false, see main.ts). // // Walking-skeleton stub for now: just `isElectron`, so renderer code can // detect it's running inside the desktop shell. A real API surface (native // notifications, etc.) gets added on top of this bridge in a later step. import { contextBridge } from "electron"; contextBridge.exposeInMainWorld("vnc", { isElectron: true, });