OpenAsar/src/splash/preload.js

8 lines
263 B
JavaScript
Raw Normal View History

const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('Splash', {
onState: callback => ipcRenderer.on('state', (_, state) => callback(state)),
quit: () => ipcRenderer.send('sq'),
skip: () => ipcRenderer.send('ss')
2021-12-09 16:25:14 +00:00
});