forked from Mirrors/OpenAsar
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.
7 lines
292 B
7 lines
292 B
const { contextBridge, ipcRenderer } = require('electron');
|
|
|
|
|
|
contextBridge.exposeInMainWorld('DiscordSplash', {
|
|
signalReady: () => ipcRenderer.send('DISCORD_SPLASH_SCREEN_READY'),
|
|
onStateUpdate: callback => ipcRenderer.on('DISCORD_SPLASH_UPDATE_STATE', (_, state) => callback(state))
|
|
}); |