[Chore] Revert last commit for CI testing
This reverts commit 73bc0650d4
.
This commit is contained in:
parent
73bc0650d4
commit
00ae1f58a3
2 changed files with 8 additions and 1 deletions
|
@ -427,6 +427,10 @@ function launchSplashWindow(startMinimized) {
|
|||
}
|
||||
});
|
||||
|
||||
ipcMain.on('DISCORD_SPLASH_SCREEN_QUIT', () => {
|
||||
_electron.app.quit();
|
||||
});
|
||||
|
||||
const splashUrl = _url.default.format({
|
||||
protocol: 'file',
|
||||
slashes: true,
|
||||
|
|
|
@ -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')
|
||||
});
|
Loading…
Reference in a new issue