From 5a3cf6d81f171cf7995768bf6c979cd90bad1f5f Mon Sep 17 00:00:00 2001 From: Oj Date: Thu, 10 Feb 2022 21:14:23 +0000 Subject: [PATCH] [Splash > Preload] Cleanup source (remove unused native) --- src/splash/index.js | 4 ---- src/splash/preload.js | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/splash/index.js b/src/splash/index.js index cee10f8..0692ca8 100644 --- a/src/splash/index.js +++ b/src/splash/index.js @@ -427,10 +427,6 @@ function launchSplashWindow(startMinimized) { } }); - ipcMain.on('DISCORD_SPLASH_SCREEN_QUIT', () => { - _electron.app.quit(); - }); - const splashUrl = _url.default.format({ protocol: 'file', slashes: true, diff --git a/src/splash/preload.js b/src/splash/preload.js index 38c6c2b..f21f1cc 100644 --- a/src/splash/preload.js +++ b/src/splash/preload.js @@ -3,8 +3,5 @@ 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)), - - quitDiscord: () => ipcRenderer.send('DISCORD_SPLASH_SCREEN_QUIT') + onStateUpdate: callback => ipcRenderer.on('DISCORD_SPLASH_UPDATE_STATE', (_, state) => callback(state)) }); \ No newline at end of file