mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
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:
parent
f11b97aeae
commit
81e340d445
1 changed files with 3 additions and 0 deletions
|
|
@ -110,3 +110,6 @@ const ea: ElectronAPI = {
|
|||
request,
|
||||
) as Promise<PluginNodeScriptResult>,
|
||||
};
|
||||
|
||||
// Expose ea to window for ipc-event.ts
|
||||
(window as any).ea = ea;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue