fix(security - ipc): do not expose sender

This commit is contained in:
V 2023-08-25 14:57:04 +02:00
parent 07c1f5eed1
commit c752be45b2
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

@ -48,7 +48,7 @@ export default {
},
addThemeChangeListener(cb: () => void) {
ipcRenderer.on(IpcEvents.THEME_UPDATE, cb);
ipcRenderer.on(IpcEvents.THEME_UPDATE, () => cb());
},
openFile: () => invoke<void>(IpcEvents.OPEN_QUICKCSS),