2022-01-28 19:06:41 +00:00
|
|
|
const { contextBridge, ipcRenderer } = require('electron');
|
2022-02-06 17:48:27 +00:00
|
|
|
|
|
|
|
|
2022-03-11 14:18:25 +00:00
|
|
|
contextBridge.exposeInMainWorld('Splash', {
|
2022-04-22 09:11:57 +00:00
|
|
|
onState: callback => ipcRenderer.on('state', (_, state) => callback(state)),
|
|
|
|
quit: () => ipcRenderer.send('sq'),
|
|
|
|
skip: () => ipcRenderer.send('ss')
|
2021-12-09 16:25:14 +00:00
|
|
|
});
|