working version with js electron set up sending data to channel and stuff through to the main process
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user