2023-05-04 00:33:25 +02:00
|
|
|
const { contextBridge, ipcRenderer } = require('electron')
|
|
|
|
|
|
|
|
contextBridge.exposeInMainWorld('electronAPI', {
|
|
|
|
setStartCore: () => ipcRenderer.send('set-start-core'),
|
2023-05-19 17:11:54 +02:00
|
|
|
checkForUpdate: () => ipcRenderer.send('check-for-update'),
|
2023-06-11 05:06:54 +03:00
|
|
|
showMyMenu: () => ipcRenderer.send('show-my-menu'),
|
|
|
|
focusApp: () => ipcRenderer.send('focus-app'),
|
2023-07-23 18:01:30 +02:00
|
|
|
clearMyCache: () => ipcRenderer.send('clear-all-cache'),
|
2023-05-04 00:33:25 +02:00
|
|
|
})
|