[Splash > Backend] Tweak backend-preload IPC

This commit is contained in:
Ducko 2022-03-13 13:05:28 +00:00
parent 74ca819e4f
commit 9278749611
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ const launchMainWindow = () => {
const sendState = (status) => {
try {
splashWindow.webContents.send('SPLASH_STATE', { status, ...splashState });
splashWindow.webContents.send('state', { status, ...splashState });
} catch (_e) {}
};

View file

@ -2,5 +2,5 @@ const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('Splash', {
onState: callback => ipcRenderer.on('SPLASH_STATE', (_, state) => callback(state))
onState: callback => ipcRenderer.on('state', (_, state) => callback(state))
});