Skip to content

Commit

Permalink
fix ` Error storing extension config: TypeError: window.electron.send…
Browse files Browse the repository at this point in the history
… is not a function at CI`
  • Loading branch information
Kvadratni committed Feb 1, 2025
1 parent dd15963 commit 20cef53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/desktop/src/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ contextBridge.exposeInMainWorld('electron', {
stopPowerSaveBlocker: () => ipcRenderer.invoke('stop-power-save-blocker'),
getBinaryPath: (binaryName) => ipcRenderer.invoke('get-binary-path', binaryName),
on: (channel, callback) => ipcRenderer.on(channel, callback),
off: (channel, callback) => ipcRenderer.off(channel, callback)
off: (channel, callback) => ipcRenderer.off(channel, callback),
send: (key) => ipcRenderer.send(key)
});

0 comments on commit 20cef53

Please sign in to comment.