client commit

This commit is contained in:
Kevin Puig
2025-09-26 23:34:36 -04:00
parent a2befbb724
commit d2a8cf11a2
24 changed files with 1648 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
"use strict";
const electron = require("electron");
electron.contextBridge.exposeInMainWorld("ipcRenderer", {
on(...args) {
const [channel, listener] = args;
return electron.ipcRenderer.on(channel, (event, ...args2) => listener(event, ...args2));
},
off(...args) {
const [channel, ...omit] = args;
return electron.ipcRenderer.off(channel, ...omit);
},
send(...args) {
const [channel, ...omit] = args;
return electron.ipcRenderer.send(channel, ...omit);
},
invoke(...args) {
const [channel, ...omit] = args;
return electron.ipcRenderer.invoke(channel, ...omit);
}
// You can expose other APTs you need here.
// ...
});