2023-08-01 19:46:28 +02:00
|
|
|
const { contextBridge, ipcRenderer, webFrame } = require('electron')
|
2023-05-04 00:33:25 +02:00
|
|
|
|
|
|
|
contextBridge.exposeInMainWorld('electronAPI', {
|
|
|
|
setStartCore: () => ipcRenderer.send('set-start-core'),
|
2024-01-03 16:47:53 +01:00
|
|
|
startCore: () => ipcRenderer.send('start-core-electron'),
|
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-08-01 19:46:28 +02:00
|
|
|
clearCache() {
|
|
|
|
webFrame.clearCache()
|
2024-05-08 13:16:23 +02:00
|
|
|
}
|
2023-05-04 00:33:25 +02:00
|
|
|
})
|