[Splash > Preload] Cleanup source (remove unused native)

This commit is contained in:
Ducko 2022-02-10 21:14:23 +00:00
parent 00ae1f58a3
commit 5a3cf6d81f
2 changed files with 1 additions and 8 deletions

View file

@ -427,10 +427,6 @@ function launchSplashWindow(startMinimized) {
} }
}); });
ipcMain.on('DISCORD_SPLASH_SCREEN_QUIT', () => {
_electron.app.quit();
});
const splashUrl = _url.default.format({ const splashUrl = _url.default.format({
protocol: 'file', protocol: 'file',
slashes: true, slashes: true,

View file

@ -3,8 +3,5 @@ const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('DiscordSplash', { contextBridge.exposeInMainWorld('DiscordSplash', {
signalReady: () => ipcRenderer.send('DISCORD_SPLASH_SCREEN_READY'), 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')
}); });