Skip to content

five-on-it / apps/client/electron/preload

apps/client/electron/preload ​

Preload: the only bridge between the renderer and Electron. It exposes a small, typed object (FoiBridge, window.foi): the Electron version, the local game server's controls and Steam's (a ticket, Steam's sign-in page in a window), each one IPC call to the main process, and the player's answer about crash reports passed on to it; nothing here hands the renderer Node capabilities.