[Splash > Backend] Tweak backend-preload IPC
This commit is contained in:
parent
74ca819e4f
commit
9278749611
2 changed files with 2 additions and 2 deletions
|
@ -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) {}
|
||||
};
|
||||
|
||||
|
|
|
@ -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))
|
||||
});
|
Loading…
Reference in a new issue