|
|
|
@ -3,5 +3,8 @@ 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))
|
|
|
|
|
|
|
|
|
|
onStateUpdate: callback => ipcRenderer.on('DISCORD_SPLASH_UPDATE_STATE', (_, state) => callback(state)),
|
|
|
|
|
|
|
|
|
|
quitDiscord: () => ipcRenderer.send('DISCORD_SPLASH_SCREEN_QUIT')
|
|
|
|
|
});
|