[Splash > Preload] Tweak source
This commit is contained in:
parent
fa54c89eec
commit
ff126420e9
1 changed files with 1 additions and 5 deletions
|
@ -6,11 +6,7 @@ const { saferShellOpenExternal } = require('../utils/securityUtils');
|
|||
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)),
|
||||
|
||||
openUrl: saferShellOpenExternal,
|
||||
quitDiscord: () => ipcRenderer.send('DISCORD_SPLASH_SCREEN_QUIT')
|
||||
|
|
Loading…
Reference in a new issue