working version with js electron set up sending data to channel and stuff through to the main process

This commit is contained in:
talksik
2022-03-12 18:09:21 -05:00
parent 3b9da153ab
commit 118ffccd64
24 changed files with 2856 additions and 24630 deletions
+8
View File
@@ -0,0 +1,8 @@
const { contextBridge, ipcRenderer } = require("electron");
const { channels } = require("../src/shared/constants");
const API = {
activateLogin: () => ipcRenderer.send(channels.ACTIVATE_LOG_IN),
};
contextBridge.exposeInMainWorld("API", API);