feat/getting-started-and-navbar
This commit is contained in:
parent
c503bc8a2b
commit
29320c475e
9 changed files with 555 additions and 75 deletions
10
main/preload.js
Normal file
10
main/preload.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
const { contextBridge, ipcRenderer } = require("electron");
|
||||
|
||||
contextBridge.exposeInMainWorld("electronAPI", {
|
||||
on: (channel, callback) => {
|
||||
ipcRenderer.on(channel, callback);
|
||||
},
|
||||
send: (channel, args) => {
|
||||
ipcRenderer.send(channel, args);
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue