fix: expose ElectronAPI to window in preload script

- Add window.ea = ea to make ElectronAPI available for ipc-event.ts
- Fixes 'Cannot read properties of undefined (reading on)' error in Electron build
- Ensures proper IPC communication between renderer and main process
This commit is contained in:
Johannes Millan 2025-06-27 21:50:23 +02:00
parent f11b97aeae
commit 81e340d445

View file

@ -110,3 +110,6 @@ const ea: ElectronAPI = {
request,
) as Promise<PluginNodeScriptResult>,
};
// Expose ea to window for ipc-event.ts
(window as any).ea = ea;