mirror of https://github.com/qortal/qortal-ui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
500 B
13 lines
500 B
const { contextBridge, ipcRenderer, webFrame } = require('electron') |
|
|
|
contextBridge.exposeInMainWorld('electronAPI', { |
|
setStartCore: () => ipcRenderer.send('set-start-core'), |
|
startCore: () => ipcRenderer.send('start-core-electron'), |
|
checkForUpdate: () => ipcRenderer.send('check-for-update'), |
|
showMyMenu: () => ipcRenderer.send('show-my-menu'), |
|
focusApp: () => ipcRenderer.send('focus-app'), |
|
clearMyCache: () => ipcRenderer.send('clear-all-cache'), |
|
clearCache() { |
|
webFrame.clearCache() |
|
} |
|
}) |